Mercurial > pygar
comparison config/bm/Pygar/sort_test/sort-test.cfx @ 23:90197e3375e2 pygar svn.24
[svn r24] added testing, but something is wrong with our c++ file.
author | rlm |
---|---|
date | Wed, 28 Apr 2010 08:19:09 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
22:0cfbb1e2de22 | 23:90197e3375e2 |
---|---|
1 : # -*-Perl-*- | |
2 eval 'exec perl -w "$0" ${1+"$@"}' | |
3 if 0; | |
4 | |
5 ## | |
6 ## Directory of hasim benchmarks | |
7 ## Remember to set this file as executable | |
8 | |
9 use Asim; | |
10 use strict; | |
11 | |
12 my $gcfg = Asim::GenCFG->new(); | |
13 | |
14 my @bmark_tests = ( "2" | |
15 ,"4" | |
16 ,"8" | |
17 ,"16" | |
18 ,"32" | |
19 ,"64" | |
20 ,"128" | |
21 ,"256" | |
22 ,"512" | |
23 ,"1024" | |
24 ,"2048" | |
25 ,"4096" | |
26 ,"8192" | |
27 ,"16384" | |
28 ,"32768" | |
29 ,"65536" | |
30 ,"131072" | |
31 ,"262144" | |
32 ,"524288" | |
33 ,"1048576"); | |
34 | |
35 | |
36 foreach my $bmark (@bmark_tests) { | |
37 $gcfg->add(name => $bmark, | |
38 tree => [ "benchmarks" ], | |
39 setup => "scripts/setup-null-bmark --silent=1 --compare=1 --data=../benchmarks/sort_array/$bmark $bmark", | |
40 feeder => "none", | |
41 ccount => 800000, #Hmmm.... may need to edit | |
42 ); | |
43 } | |
44 | |
45 $gcfg->action(@ARGV); |