diff options
Diffstat (limited to 'SunSpider/sunspider-compare-results')
-rwxr-xr-x | SunSpider/sunspider-compare-results | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/SunSpider/sunspider-compare-results b/SunSpider/sunspider-compare-results index a34f796..09b7052 100755 --- a/SunSpider/sunspider-compare-results +++ b/SunSpider/sunspider-compare-results @@ -29,30 +29,35 @@ use File::Basename; my $showHelp = 0; my $jsShellPath; +my $suite = ""; my $ubench = 0; my $v8suite = 0; -my $parseonly = 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 + --suite Select a specific benchmark suite. The default is sunspider-0.9.1 + --ubench Use microbenchmark suite instead of regular tests. Same as --suite=ubench + --v8-suite Use the V8 benchmark suite. Same as --suite=v8-v4 --parse-only Compare the parse-only benchmark results EOF GetOptions('shell=s' => \$jsShellPath, + 'suite=s' => \$suite, 'ubench' => \$ubench, 'v8-suite' => \$v8suite, - 'parse-only' => \$parseonly, + '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); +$suite = "ubench" if ($ubench); +$suite = "v8-v4" if ($v8suite); +$suite = "parse-only" if ($parseOnly); +$suite = "sunspider-0.9.1" if (!$suite); + +my $resultDirectory = "${suite}-results"; if ((scalar @ARGV != 0 && scalar @ARGV != 2) || !$jsShellPath || $showHelp) { print STDERR $usage; |