summaryrefslogtreecommitdiffstats
path: root/WebKitTools/Scripts/sunspider-compare-results
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/Scripts/sunspider-compare-results')
-rwxr-xr-xWebKitTools/Scripts/sunspider-compare-results12
1 files changed, 10 insertions, 2 deletions
diff --git a/WebKitTools/Scripts/sunspider-compare-results b/WebKitTools/Scripts/sunspider-compare-results
index a207d7a..3446cd8 100755
--- a/WebKitTools/Scripts/sunspider-compare-results
+++ b/WebKitTools/Scripts/sunspider-compare-results
@@ -39,21 +39,27 @@ my $configuration = configuration();
my $root;
my $showHelp = 0;
+my $suite = "";
my $ubench = 0;
my $v8 = 0;
+my $parseonly = 0;
my $programName = basename($0);
my $usage = <<EOF;
Usage: $programName [options] FILE FILE
--help Show this help message
--root Path to root tools build
- --ubench Compare microbenchmark results
- --v8 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 Use the parse-only benchmark suite. Same as --suite=parse-only
EOF
GetOptions('root=s' => sub { my ($argName, $value); setConfigurationProductDir(Cwd::abs_path($value)); },
+ 'suite=s' => \$suite,
'ubench' => \$ubench,
'v8' => \$v8,
+ 'parse-only' => \$parseonly,
'help' => \$showHelp);
if ($showHelp) {
@@ -119,7 +125,9 @@ chdir("SunSpider");
my @args = ("--shell", $jscPath);
# This code could be removed if we chose to pass extra args to sunspider instead of Xcode
+push @args, "--suite=${suite}" if $suite;
push @args, "--ubench" if $ubench;
push @args, "--v8" if $v8;
+push @args, "--parse-only" if $parseonly;
exec currentPerlPath(), "./sunspider-compare-results", @args, @ARGV;