Mercurial > pygar
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/config/bm/Pygar/sort_test/sort-test.cfx Wed Apr 28 08:19:09 2010 -0400 1.3 @@ -0,0 +1,45 @@ 1.4 +: # -*-Perl-*- 1.5 +eval 'exec perl -w "$0" ${1+"$@"}' 1.6 + if 0; 1.7 + 1.8 +## 1.9 +## Directory of hasim benchmarks 1.10 +## Remember to set this file as executable 1.11 + 1.12 +use Asim; 1.13 +use strict; 1.14 + 1.15 +my $gcfg = Asim::GenCFG->new(); 1.16 + 1.17 +my @bmark_tests = ( "2" 1.18 + ,"4" 1.19 + ,"8" 1.20 + ,"16" 1.21 + ,"32" 1.22 + ,"64" 1.23 + ,"128" 1.24 + ,"256" 1.25 + ,"512" 1.26 + ,"1024" 1.27 + ,"2048" 1.28 + ,"4096" 1.29 + ,"8192" 1.30 + ,"16384" 1.31 + ,"32768" 1.32 + ,"65536" 1.33 + ,"131072" 1.34 + ,"262144" 1.35 + ,"524288" 1.36 + ,"1048576"); 1.37 + 1.38 + 1.39 +foreach my $bmark (@bmark_tests) { 1.40 + $gcfg->add(name => $bmark, 1.41 + tree => [ "benchmarks" ], 1.42 + setup => "scripts/setup-null-bmark --silent=1 --compare=1 --data=../benchmarks/sort_array/$bmark $bmark", 1.43 + feeder => "none", 1.44 + ccount => 800000, #Hmmm.... may need to edit 1.45 + ); 1.46 +} 1.47 + 1.48 +$gcfg->action(@ARGV);