Changeset 52057 in webkit
- Timestamp:
- Dec 12, 2009 6:18:53 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
- 27 copied
- 37 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/SunSpider
- Property svn:ignore
-
old new 1 parse-only-results 2 sunspider-0.9-results 3 sunspider-0.9.1-results 4 ubench-results 5 v8-v4-results 1 6 tmp 2 7 *.mshark
-
- Property svn:ignore
-
trunk/SunSpider/ChangeLog
r48923 r52057 1 2009-12-12 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Give command-line sunspider the ability to handle multiple suites and versions 6 https://bugs.webkit.org/show_bug.cgi?id=32477 7 8 Each suite/version's set of tests are now in a separate subdirectory of tests/, with a file named LIST 9 enumerating the tests. Current suites are: 10 11 sunspider-0.9 - riginal SunSpider content 12 sunspider-0.9.1 - SunSpider suite with a few tests fixed (and a few more to come) 13 ubench - "ubench" microbenchmark suite 14 v8-v4 - version 4 of the v8 benchmark 15 parse-only - some parser tests 16 17 Sunspider can now be run with the --suite= parameter to select a 18 suite. The default is --suite=sunspider-0.9. 19 20 * .: Modified property svn:ignore to ignore new results directories. 21 * make-hosted: Generate based on sunspider-0.9 suite. 22 * resources/TEMPLATE.html: Fix an HTML compliance problem. 23 * resources/sunspider-standalone-driver.js: Become aware of suite names. 24 * sunspider: Modified to handle multiple suites as described above. 25 * sunspider-compare-results: ditto 26 * tests/LIST: Moved to tests/sunspider-0.9/ and tests/sunspider-0.9.1/ 27 * tests/LIST-PARSE-ONLY: Moved to parse-only/LIST 28 * tests/LIST-UBENCH: Removed. 29 * tests/LIST-V8: Removed. 30 * tests/3d-cube.js: Moved to tests/sunspider-0.9 and tests/sunspider-0.9.1 31 * tests/3d-morph.js: ditto 32 * tests/3d-raytrace.js: ditto 33 * tests/access-binary-trees.js: ditto 34 * tests/access-fannkuch.js: ditto 35 * tests/access-nbody.js: ditto 36 * tests/access-nsieve.js: ditto 37 * tests/bitops-3bit-bits-in-byte.js: ditto 38 * tests/bitops-bits-in-byte.js: ditto 39 * tests/bitops-bitwise-and.js: ditto 40 * tests/bitops-nsieve-bits.js: ditto 41 * tests/controlflow-recursive.js: ditto 42 * tests/crypto-aes.js: ditto 43 * tests/crypto-md5.js: ditto 44 * tests/crypto-sha1.js: ditto 45 * tests/date-format-tofte.js: ditto 46 * tests/date-format-xparb.js: ditto 47 * tests/math-cordic.js: ditto 48 * tests/math-partial-sums.js: ditto 49 * tests/math-spectral-norm.js: ditto 50 * tests/regexp-dna.js: ditto 51 * tests/string-base64.js: ditto 52 * tests/string-fasta.js: ditto 53 * tests/string-tagcloud.js: ditto 54 * tests/string-unpack-code.js: ditto 55 * tests/string-validate-input.js: ditto 56 * tests/sunspider-0.9/: Added 57 * tests/sunspider-0.9/*.js: Moved from one level up 58 * tests/sunspider-0.9.1: Added. 59 * tests/sunspider-0.9.1/*.js: Moved from one level up. 60 * tests/v8-crypto.js: Moved to v8-v4/ directory. 61 * tests/v8-deltablue.js: ditto 62 * tests/v8-earley-boyer.js: ditto 63 * tests/v8-raytrace.js: ditto 64 * tests/v8-regexp.js: ditto 65 * tests/v8-richards.js: ditto 66 * tests/v8-splay.js: ditto 67 * tests/v8-v4: Added. 68 1 69 2009-09-30 Csaba Osztrogonac <oszi@inf.u-szeged.hu> 2 70 -
trunk/SunSpider/make-hosted
r27411 r52057 34 34 my %uniqueCategories = (); 35 35 36 open TESTLIST, "<./tests/ LIST";36 open TESTLIST, "<./tests/sunspider-0.9/LIST"; 37 37 while (<TESTLIST>) { 38 38 chomp; … … 51 51 my $name = "${test}"; 52 52 53 open SCRIPT, "<tests/ ${test}.js";53 open SCRIPT, "<tests/sunspider-0.9/${test}.js"; 54 54 my $script = do { local $/; <SCRIPT> }; 55 55 close SCRIPT; -
trunk/SunSpider/resources/TEMPLATE.html
r28678 r52057 27 27 28 28 <title>SunSpider @NAME@</title> 29 <link rel="stylesheet" href="sunspider.css"> </link>29 <link rel="stylesheet" href="sunspider.css"> 30 30 </head> 31 31 -
trunk/SunSpider/resources/sunspider-standalone-driver.js
r44870 r52057 31 31 32 32 for (var j = 0; j < tests.length; j++) { 33 var testName = "tests/" + tests[j] + ".js";33 var testName = "tests/" + suiteName + "/" + tests[j] + ".js"; 34 34 var startTime = new Date; 35 35 if (testName.indexOf('parse-only') >= 0) -
trunk/SunSpider/sunspider
r48923 r52057 39 39 my $ubench = 0; 40 40 my $v8suite = 0; 41 my $parseonly = 0; 41 my $suite = ""; 42 my $parseOnly = 0; 42 43 my $jsShellPath; 43 44 my $jsShellArgs = ""; … … 58 59 --shark20 Like --shark, but with a 20 microsecond sampling interval 59 60 --shark-cache Like --shark, but performs a L2 cache-miss sample instead of time sample 60 --ubench Use microbenchmark suite instead of regular tests (to check for core execution regressions) 61 --v8-suite Use the V8 benchmark suite 62 --parse-only Use the parse-only benchmark suite 61 --suite Select a specific benchmark suite. The default is sunspider-0.9 62 --ubench Use microbenchmark suite instead of regular tests. Same as --suite=ubench 63 --v8-suite Use the V8 benchmark suite. Same as --suite=v8-v4 64 --parse-only Use the parse-only benchmark suite. Same as --suite=parse-only 63 65 EOF 64 66 … … 70 72 'shark20' => \$runShark20, 71 73 'shark-cache' => \$runSharkCache, 74 'suite=s' => \$suite, 72 75 'ubench' => \$ubench, 73 76 'v8-suite' => \$v8suite, 74 'parse-only' => \$parse only,77 'parse-only' => \$parseOnly, 75 78 'tests=s' => \$testsPattern, 76 79 'help' => \$showHelp); 77 80 78 my $resultDirectory = "sunspider-results"; 79 $resultDirectory = "ubench-results" if ($ubench); 80 $resultDirectory = "v8-results" if ($v8suite); 81 $resultDirectory = "parse-only-results" if ($parseonly); 81 82 $suite = "ubench" if ($ubench); 83 $suite = "v8-v4" if ($v8suite); 84 $suite = "parse-only" if ($parseOnly); 85 $suite = "sunspider-0.9" if (!$suite); 86 87 my $resultDirectory = "${suite}-results"; 82 88 83 89 $runShark = 1 if $runSharkCache; … … 124 130 sub loadTestsList() 125 131 { 126 my $testlist = "LIST"; 127 $testlist = "LIST-UBENCH" if ($ubench); 128 $testlist = "LIST-V8" if ($v8suite); 129 $testlist = "LIST-PARSE-ONLY" if ($parseonly); 130 131 open TESTLIST, "<", "tests/${testlist}" or die "Can't find ./tests/${testlist}"; 132 open TESTLIST, "<", "tests/${suite}/LIST" or die "Can't find ./tests/${suite}/LIST"; 132 133 while (<TESTLIST>) { 133 134 chomp; … … 151 152 sub writePrefixFile() 152 153 { 153 my $prefix = "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n"; 154 my $prefix = "var suiteName = " . '"' . $suite . '"' . ";\n"; 155 $prefix .= "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n"; 154 156 $prefix .= "var categories = [ " . join(", ", map { '"' . $_ . '"' } @categories) . " ];\n"; 155 157 -
trunk/SunSpider/sunspider-compare-results
r44870 r52057 30 30 my $showHelp = 0; 31 31 my $jsShellPath; 32 my $suite = ""; 32 33 my $ubench = 0; 33 34 my $v8suite = 0; 34 my $parse only = 0;35 my $parseOnly = 0; 35 36 36 37 my $programName = basename($0); … … 39 40 --help Show this help message 40 41 --shell Path to javascript shell 41 --ubench Compare microbenchmark results 42 --v8-suite Compare the V8 benchmark results 42 --suite Select a specific benchmark suite. The default is sunspider-0.9 43 --ubench Use microbenchmark suite instead of regular tests. Same as --suite=ubench 44 --v8-suite Use the V8 benchmark suite. Same as --suite=v8-v4 43 45 --parse-only Compare the parse-only benchmark results 44 46 EOF 45 47 46 48 GetOptions('shell=s' => \$jsShellPath, 49 'suite=s' => \$suite, 47 50 'ubench' => \$ubench, 48 51 'v8-suite' => \$v8suite, 49 'parse-only' => \$parse only,52 'parse-only' => \$parseOnly, 50 53 'help' => \$showHelp); 51 54 52 my $resultDirectory = "sunspider-results"; 53 $resultDirectory = "ubench-results" if ($ubench); 54 $resultDirectory = "v8-results" if ($v8suite); 55 $resultDirectory = "parse-only-results" if ($parseonly); 55 $suite = "ubench" if ($ubench); 56 $suite = "v8-v4" if ($v8suite); 57 $suite = "parse-only" if ($parseOnly); 58 $suite = "sunspider-0.9" if (!$suite); 59 60 my $resultDirectory = "${suite}-results"; 56 61 57 62 if ((scalar @ARGV != 0 && scalar @ARGV != 2) || !$jsShellPath || $showHelp) { -
trunk/SunSpider/tests/sunspider-0.9/regexp-dna.js
r52056 r52057 1709 1709 1710 1710 for(k in subs) 1711 dnaInput = dnaInput.replace(k, subs[k]) // FIXME: Would like this to be a global substitution in a future version of SunSpider.1711 dnaInput = dnaInput.replace(k, subs[k], "g") 1712 1712 // search string, replacement string, flags -
trunk/SunSpider/tests/ubench/LIST
r52056 r52057 1 ubench/function-closure2 ubench/function-empty3 ubench/function-correct-args4 ubench/function-excess-args5 ubench/function-missing-args6 ubench/function-sum7 ubench/loop-empty-resolve8 ubench/loop-empty9 ubench/loop-sum1 function-closure 2 function-empty 3 function-correct-args 4 function-excess-args 5 function-missing-args 6 function-sum 7 loop-empty-resolve 8 loop-empty 9 loop-sum -
trunk/WebKitTools/ChangeLog
r52053 r52057 1 2009-12-12 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Oliver Hunt. 4 5 Give command-line sunspider the ability to handle multiple suites and versions 6 https://bugs.webkit.org/show_bug.cgi?id=32477 7 8 * Scripts/run-sunspider: Updated for changes to command-line parameters. 9 * Scripts/sunspider-compare-results: ditto 10 1 11 2009-12-12 Maciej Stachowiak <mjs@apple.com> 2 12 -
trunk/WebKitTools/Scripts/run-sunspider
r49476 r52057 42 42 my $runShark20 = 0; 43 43 my $runSharkCache = 0; 44 my $suite = ""; 44 45 my $ubench = 0; 45 46 my $v8 = 0; … … 60 61 --shark20 Like --shark, but with a 20 microsecond sampling interval 61 62 --shark-cache Like --shark, but performs a L2 cache-miss sample instead of time sample 62 --ubench Use microbenchmark suite instead of regular tests (to check for core execution regressions) 63 --v8 Use the V8 benchmark suite. 64 --parse-only Use the parse-only benchmark suite 63 --suite Select a specific benchmark suite. The default is sunspider-0.9.1 64 --ubench Use microbenchmark suite instead of regular tests. Same as --suite=ubench 65 --v8-suite Use the V8 benchmark suite. Same as --suite=v8-v4 66 --parse-only Use the parse-only benchmark suite. Same as --suite=parse-only 65 67 EOF 66 68 … … 71 73 'shark20' => \$runShark20, 72 74 'shark-cache' => \$runSharkCache, 75 'suite=s' => \$suite, 73 76 'ubench' => \$ubench, 74 77 'v8' => \$v8, … … 118 121 push @args, "--shark20" if $runShark20; 119 122 push @args, "--shark-cache" if $runSharkCache; 123 push @args, "--suite=${suite}" if $suite; 120 124 push @args, "--ubench" if $ubench; 121 125 push @args, "--v8" if $v8; -
trunk/WebKitTools/Scripts/sunspider-compare-results
r52053 r52057 40 40 my $root; 41 41 my $showHelp = 0; 42 my $suite = ""; 42 43 my $ubench = 0; 43 44 my $v8 = 0; … … 48 49 --help Show this help message 49 50 --root Path to root tools build 50 --ubench Compare microbenchmark results 51 --v8 Compare the V8 benchmark results 51 --suite Select a specific benchmark suite. The default is sunspider-0.9.1 52 --ubench Use microbenchmark suite instead of regular tests. Same as --suite=ubench 53 --v8-suite Use the V8 benchmark suite. Same as --suite=v8-v4 54 --parse-only Use the parse-only benchmark suite. Same as --suite=parse-only 52 55 EOF 53 56 54 57 GetOptions('root=s' => sub { my ($argName, $value); setConfigurationProductDir(Cwd::abs_path($value)); }, 58 'suite=s' => \$suite, 55 59 'ubench' => \$ubench, 56 60 'v8' => \$v8, 61 'parse-only' => \$parseonly, 57 62 'help' => \$showHelp); 58 63 … … 120 125 my @args = ("--shell", $jscPath); 121 126 # This code could be removed if we chose to pass extra args to sunspider instead of Xcode 127 push @args, "--suite=${suite}" if $suite; 122 128 push @args, "--ubench" if $ubench; 123 129 push @args, "--v8" if $v8; 130 push @args, "--parse-only" if $parseonly; 124 131 125 132 exec currentPerlPath(), "./sunspider-compare-results", @args, @ARGV;
Note: See TracChangeset
for help on using the changeset viewer.