diff options
| author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
| commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
| tree | 2943df35f62d885c89d01063cc528dd73b480fea /SunSpider/sunspider-compare-results | |
| parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
| download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 | |
Merge in WebKit r47029.
Diffstat (limited to 'SunSpider/sunspider-compare-results')
| -rwxr-xr-x | SunSpider/sunspider-compare-results | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/SunSpider/sunspider-compare-results b/SunSpider/sunspider-compare-results index f23fb24..a34f796 100755 --- a/SunSpider/sunspider-compare-results +++ b/SunSpider/sunspider-compare-results @@ -29,17 +29,31 @@ use File::Basename; my $showHelp = 0; my $jsShellPath; +my $ubench = 0; +my $v8suite = 0; +my $parseonly = 0; my $programName = basename($0); my $usage = <<EOF; Usage: $programName --shell=[path] [options] FILE FILE --help Show this help message --shell Path to javascript shell + --ubench Compare microbenchmark results + --v8-suite Compare the V8 benchmark results + --parse-only Compare the parse-only benchmark results EOF GetOptions('shell=s' => \$jsShellPath, + 'ubench' => \$ubench, + 'v8-suite' => \$v8suite, + 'parse-only' => \$parseonly, 'help' => \$showHelp); +my $resultDirectory = "sunspider-results"; +$resultDirectory = "ubench-results" if ($ubench); +$resultDirectory = "v8-results" if ($v8suite); +$resultDirectory = "parse-only-results" if ($parseonly); + if ((scalar @ARGV != 0 && scalar @ARGV != 2) || !$jsShellPath || $showHelp) { print STDERR $usage; exit 1; @@ -130,13 +144,13 @@ if (scalar @ARGV == 2) { $file1 = $ARGV[0]; $file2 = $ARGV[1]; } else { - $file1 = readFile("tmp/baseline-filename.txt"); - $file2 = newestFile("tmp", qr/sunspider-results-.+\.js$/); + $file1 = readFile("$resultDirectory/baseline-filename.txt"); + $file2 = newestFile("$resultDirectory", qr/sunspider-results-.+\.js$/); } my $output = "var output1 = " . readResultsFile($file1) . ";\n"; $output .= "var output2 = " . readResultsFile($file2) . ";\n"; -dumpToFile($output, "tmp/sunspider-comparison-data.js"); +dumpToFile($output, "$resultDirectory/sunspider-comparison-data.js"); -system($jsShellPath, "-f", "tmp/sunspider-test-prefix.js", "-f", "tmp/sunspider-comparison-data.js", "-f", "resources/sunspider-compare-results.js", "-f", "resources/sunspider-standalone-compare.js"); +system($jsShellPath, "-f", "$resultDirectory/sunspider-test-prefix.js", "-f", "$resultDirectory/sunspider-comparison-data.js", "-f", "resources/sunspider-compare-results.js", "-f", "resources/sunspider-standalone-compare.js"); |
