From 925effd0456a840048ed5c592561fae56c7c8c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marja=20H=C3=B6ltt=C3=A4?= Date: Mon, 31 Aug 2020 10:45:07 +0200 Subject: [PATCH] [super property speed] Invert benchmark graphs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The goal is to have one graph per test case, and inside the graph, 4 different lines: - baseline - baseline noopt - super-ic - super-ic noopt Bug: v8:9237 Change-Id: I511b5555487a3d96698a3fb648abf76a13f76858 No-Try: True Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2384770 Reviewed-by: Peter Marshall Commit-Queue: Marja Hölttä Cr-Commit-Position: refs/heads/master@{#69618} --- test/js-perf-test/SuperIC.json | 440 +++++++++++------- .../SuperIC/megamorphic-mixin-getter.js | 4 +- .../js-perf-test/SuperIC/megamorphic-mixin.js | 4 +- .../SuperIC/monomorphic-getter.js | 4 +- .../monomorphic-mega-receivers-getter.js | 5 +- .../SuperIC/monomorphic-mega-receivers.js | 4 +- test/js-perf-test/SuperIC/monomorphic.js | 4 +- .../SuperIC/polymorphic-mixin-getter.js | 4 +- ...polymorphic-mixin-mega-receivers-getter.js | 5 +- .../polymorphic-mixin-mega-receivers.js | 6 +- .../js-perf-test/SuperIC/polymorphic-mixin.js | 4 +- test/js-perf-test/SuperIC/run.js | 2 + 12 files changed, 281 insertions(+), 205 deletions(-) diff --git a/test/js-perf-test/SuperIC.json b/test/js-perf-test/SuperIC.json index 4ced243d6a..cc97396778 100644 --- a/test/js-perf-test/SuperIC.json +++ b/test/js-perf-test/SuperIC.json @@ -11,274 +11,352 @@ "resources": ["base.js"], "tests": [ { - "name": "SuperIC-baseline-noopt", + "name": "Monomorphic", "path": ["SuperIC"], - "flags": ["--noopt"], "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["monomorphic"], "tests": [ { - "name": "Monomorphic", + "name": "baseline", "main": "run.js", "resources": ["monomorphic.js"], - "test_flags": ["monomorphic"] + "test_flags": ["baseline"] }, { - "name": "Monomorphic-MegaReceivers", + "name": "baseline-noopt", "main": "run.js", - "resources": ["monomorphic-mega-receivers.js"], - "test_flags": ["monomorphic-mega-receivers"] + "resources": ["monomorphic.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] }, { - "name": "Polymorphic-Mixin", + "name": "superic", "main": "run.js", - "resources": ["polymorphic-mixin.js"], - "test_flags": ["polymorphic-mixin"] + "resources": ["monomorphic.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] }, { - "name": "Polymorphic-Mixin-MegaReceivers", + "name": "superic-noopt", "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers.js"], - "test_flags": ["polymorphic-mixin-mega-receivers"] - }, - { - "name": "Megamorphic-Mixin", - "main": "run.js", - "resources": ["megamorphic-mixin.js"], - "test_flags": ["megamorphic-mixin"] - }, - { - "name": "Monomorphic-Getter", - "main": "run.js", - "resources": ["monomorphic-getter.js"], - "test_flags": ["monomorphic-getter"] - }, - { - "name": "Monomorphic-MegaReceivers-Getter", - "main": "run.js", - "resources": ["monomorphic-mega-receivers-getter.js"], - "test_flags": ["monomorphic-mega-receivers-getter"] - }, - { - "name": "Polymorphic-Mixin-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-getter.js"], - "test_flags": ["polymorphic-mixin-getter"] - }, - { - "name": "Polymorphic-Mixin-MegaReceivers-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers-getter.js"], - "test_flags": ["polymorphic-mixin-mega-receivers-getter"] - }, - { - "name": "Megamorphic-Mixin-Getter", - "main": "run.js", - "resources": ["megamorphic-mixin-getter.js"], - "test_flags": ["megamorphic-mixin-getter"] + "resources": ["monomorphic.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] } ] }, { - "name": "SuperIC-baseline-opt", + "name": "Monomorphic-MegaReceivers", "path": ["SuperIC"], - "flags": [], "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["monomorphic-mega-receivers"], "tests": [ { - "name": "Monomorphic", - "main": "run.js", - "resources": ["monomorphic.js"], - "test_flags": ["monomorphic"] - }, - { - "name": "Monomorphic-MegaReceivers", + "name": "baseline", "main": "run.js", "resources": ["monomorphic-mega-receivers.js"], - "test_flags": ["monomorphic-mega-receivers"] + "test_flags": ["baseline"] }, { - "name": "Polymorphic-Mixin", + "name": "baseline-noopt", "main": "run.js", - "resources": ["polymorphic-mixin.js"], - "test_flags": ["polymorphic-mixin"] + "resources": ["monomorphic-mega-receivers.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] }, { - "name": "Polymorphic-Mixin-MegaReceivers", + "name": "superic", "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers.js"], - "test_flags": ["polymorphic-mixin-mega-receivers"] + "resources": ["monomorphic-mega-receivers.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] }, { - "name": "Megamorphic-Mixin", + "name": "superic-noopt", "main": "run.js", - "resources": ["megamorphic-mixin.js"], - "test_flags": ["megamorphic-mixin"] - }, - { - "name": "Monomorphic-Getter", - "main": "run.js", - "resources": ["monomorphic-getter.js"], - "test_flags": ["monomorphic-getter"] - }, - { - "name": "Monomorphic-MegaReceivers-Getter", - "main": "run.js", - "resources": ["monomorphic-mega-receivers-getter.js"], - "test_flags": ["monomorphic-mega-receivers-getter"] - }, - { - "name": "Polymorphic-Mixin-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-getter.js"], - "test_flags": ["polymorphic-mixin-getter"] - }, - { - "name": "Polymorphic-Mixin-MegaReceivers-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers-getter.js"], - "test_flags": ["polymorphic-mixin-mega-receivers-getter"] - }, - { - "name": "Megamorphic-Mixin-Getter", - "main": "run.js", - "resources": ["megamorphic-mixin-getter.js"], - "test_flags": ["megamorphic-mixin-getter"] + "resources": ["monomorphic-mega-receivers.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] } ] }, { - "name": "SuperIC-noopt", + "name": "Polymorphic-Mixin", "path": ["SuperIC"], - "flags": ["--noopt", "--super-ic"], "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin"], "tests": [ { - "name": "Monomorphic", - "main": "run.js", - "resources": ["monomorphic.js"], - "test_flags": ["monomorphic"] - }, - { - "name": "Monomorphic-MegaReceivers", - "main": "run.js", - "resources": ["monomorphic-mega-receivers.js"], - "test_flags": ["monomorphic-mega-receivers"] - }, - { - "name": "Polymorphic-Mixin", + "name": "baseline", "main": "run.js", "resources": ["polymorphic-mixin.js"], - "test_flags": ["polymorphic-mixin"] + "test_flags": ["baseline"] }, { - "name": "Polymorphic-Mixin-MegaReceivers", + "name": "baseline-noopt", "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers.js"], - "test_flags": ["polymorphic-mixin-mega-receivers"] + "resources": ["polymorphic-mixin.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] }, { - "name": "Megamorphic-Mixin", + "name": "superic", "main": "run.js", - "resources": ["megamorphic-mixin.js"], - "test_flags": ["megamorphic-mixin"] + "resources": ["polymorphic-mixin.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] }, { - "name": "Monomorphic-Getter", + "name": "superic-noopt", "main": "run.js", - "resources": ["monomorphic-getter.js"], - "test_flags": ["monomorphic-getter"] - }, - { - "name": "Monomorphic-MegaReceivers-Getter", - "main": "run.js", - "resources": ["monomorphic-mega-receivers-getter.js"], - "test_flags": ["monomorphic-mega-receivers-getter"] - }, - { - "name": "Polymorphic-Mixin-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-getter.js"], - "test_flags": ["polymorphic-mixin-getter"] - }, - { - "name": "Polymorphic-Mixin-MegaReceivers-Getter", - "main": "run.js", - "resources": ["polymorphic-mixin-mega-receivers-getter.js"], - "test_flags": ["polymorphic-mixin-mega-receivers-getter"] - }, - { - "name": "Megamorphic-Mixin-Getter", - "main": "run.js", - "resources": ["megamorphic-mixin-getter.js"], - "test_flags": ["megamorphic-mixin-getter"] + "resources": ["polymorphic-mixin.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] } ] }, { - "name": "SuperIC-opt", + "name": "Polymorphic-Mixin-MegaReceivers", "path": ["SuperIC"], - "flags": ["--super-ic"], "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin-mega-receivers"], "tests": [ { - "name": "Monomorphic", - "main": "run.js", - "resources": ["monomorphic.js"], - "test_flags": ["monomorphic"] - }, - { - "name": "Monomorphic-MegaReceivers", - "main": "run.js", - "resources": ["monomorphic-mega-receivers.js"], - "test_flags": ["monomorphic-mega-receivers"] - }, - { - "name": "Polymorphic-Mixin", - "main": "run.js", - "resources": ["polymorphic-mixin.js"], - "test_flags": ["polymorphic-mixin"] - }, - { - "name": "Polymorphic-Mixin-MegaReceivers", + "name": "baseline", "main": "run.js", "resources": ["polymorphic-mixin-mega-receivers.js"], - "test_flags": ["polymorphic-mixin-mega-receivers"] + "test_flags": ["baseline"] }, { - "name": "Megamorphic-Mixin", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Megamorphic-Mixin", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["megamorphic-mixin.js"], - "test_flags": ["megamorphic-mixin"] + "test_flags": ["baseline"] }, { - "name": "Monomorphic-Getter", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["megamorphic-mixin.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["megamorphic-mixin.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["megamorphic-mixin.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Monomorphic-Getter", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["monomorphic-getter"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["monomorphic-getter.js"], - "test_flags": ["monomorphic-getter"] + "test_flags": ["baseline"] }, { - "name": "Monomorphic-MegaReceivers-Getter", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["monomorphic-getter.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["monomorphic-getter.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["monomorphic-getter.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Monomorphic-MegaReceivers-Getter", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["monomorphic-mega-receivers-getter"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["monomorphic-mega-receivers-getter.js"], - "test_flags": ["monomorphic-mega-receivers-getter"] + "test_flags": ["baseline"] }, { - "name": "Polymorphic-Mixin-Getter", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["monomorphic-mega-receivers-getter.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["monomorphic-mega-receivers-getter.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["monomorphic-mega-receivers-getter.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Polymorphic-Mixin-Getter", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin-getter"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["polymorphic-mixin-getter.js"], - "test_flags": ["polymorphic-mixin-getter"] + "test_flags": ["baseline"] }, { - "name": "Polymorphic-Mixin-MegaReceivers-Getter", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-getter.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["polymorphic-mixin-getter.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-getter.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Polymorphic-Mixin-MegaReceivers-Getter", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin-mega-receivers-getter"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["polymorphic-mixin-mega-receivers-getter.js"], - "test_flags": ["polymorphic-mixin-mega-receivers-getter"] + "test_flags": ["baseline"] }, { - "name": "Megamorphic-Mixin-Getter", + "name": "baseline-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers-getter.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers-getter.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["polymorphic-mixin-mega-receivers-getter.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] + } + ] + }, + { + "name": "Megamorphic-Mixin-Getter", + "path": ["SuperIC"], + "results_regexp": "^%s\\(Score\\): (.+)$", + "test_flags": ["polymorphic-mixin-getter"], + "tests": [ + { + "name": "baseline", "main": "run.js", "resources": ["megamorphic-mixin-getter.js"], - "test_flags": ["megamorphic-mixin-getter"] + "test_flags": ["baseline"] + }, + { + "name": "baseline-noopt", + "main": "run.js", + "resources": ["megamorphic-mixin-getter.js"], + "test_flags": ["baseline-noopt"], + "flags": ["--noopt"] + }, + { + "name": "superic", + "main": "run.js", + "resources": ["megamorphic-mixin-getter.js"], + "test_flags": ["superic"], + "flags": ["--super-ic"] + }, + { + "name": "superic-noopt", + "main": "run.js", + "resources": ["megamorphic-mixin-getter.js"], + "test_flags": ["superic-noopt"], + "flags": ["--super-ic", "--noopt"] } ] } diff --git a/test/js-perf-test/SuperIC/megamorphic-mixin-getter.js b/test/js-perf-test/SuperIC/megamorphic-mixin-getter.js index a2685c461f..17264e68c8 100644 --- a/test/js-perf-test/SuperIC/megamorphic-mixin-getter.js +++ b/test/js-perf-test/SuperIC/megamorphic-mixin-getter.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Megamorphic-Mixin-Getter', [1000], [ - new Benchmark('Megamorphic-Mixin-Getter', false, false, DETERMINISTIC_RUNS, +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/megamorphic-mixin.js b/test/js-perf-test/SuperIC/megamorphic-mixin.js index 95803c0eb3..bd59bba19e 100644 --- a/test/js-perf-test/SuperIC/megamorphic-mixin.js +++ b/test/js-perf-test/SuperIC/megamorphic-mixin.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Megamorphic-Mixin', [1000], [ - new Benchmark('Megamorphic-Mixin', false, false, DETERMINISTIC_RUNS, +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/monomorphic-getter.js b/test/js-perf-test/SuperIC/monomorphic-getter.js index b29f3c54cd..7d35ef1008 100644 --- a/test/js-perf-test/SuperIC/monomorphic-getter.js +++ b/test/js-perf-test/SuperIC/monomorphic-getter.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Monomorphic-Getter', [1000], [ - new Benchmark('Monomorphic-Getter', false, false, DETERMINISTIC_RUNS, runBenchmark) +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); class A { diff --git a/test/js-perf-test/SuperIC/monomorphic-mega-receivers-getter.js b/test/js-perf-test/SuperIC/monomorphic-mega-receivers-getter.js index ed215c347c..31845a1b46 100644 --- a/test/js-perf-test/SuperIC/monomorphic-mega-receivers-getter.js +++ b/test/js-perf-test/SuperIC/monomorphic-mega-receivers-getter.js @@ -3,9 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Monomorphic-MegaReceivers-Getter', [1000], [ - new Benchmark('Monomorphic-MegaReceivers-Getter', false, false, DETERMINISTIC_RUNS, - runBenchmark) +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); class A { diff --git a/test/js-perf-test/SuperIC/monomorphic-mega-receivers.js b/test/js-perf-test/SuperIC/monomorphic-mega-receivers.js index 9b385e9f8e..00ed665ad9 100644 --- a/test/js-perf-test/SuperIC/monomorphic-mega-receivers.js +++ b/test/js-perf-test/SuperIC/monomorphic-mega-receivers.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Monomorphic-MegaReceivers', [1000], [ - new Benchmark('Monomorphic-MegaReceivers', false, false, DETERMINISTIC_RUNS, +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/monomorphic.js b/test/js-perf-test/SuperIC/monomorphic.js index 20e34c30a5..3b48fcb62a 100644 --- a/test/js-perf-test/SuperIC/monomorphic.js +++ b/test/js-perf-test/SuperIC/monomorphic.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Monomorphic', [1000], [ - new Benchmark('Monomorphic', false, false, DETERMINISTIC_RUNS, runBenchmark) +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); class A { }; diff --git a/test/js-perf-test/SuperIC/polymorphic-mixin-getter.js b/test/js-perf-test/SuperIC/polymorphic-mixin-getter.js index ebfa865de2..3413630575 100644 --- a/test/js-perf-test/SuperIC/polymorphic-mixin-getter.js +++ b/test/js-perf-test/SuperIC/polymorphic-mixin-getter.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Polymorphic-Mixin-Getter', [1000], [ - new Benchmark('Polymorphic-Mixin-Getter', false, false, DETERMINISTIC_RUNS, +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers-getter.js b/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers-getter.js index d61dc21f3f..5d60e3687a 100644 --- a/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers-getter.js +++ b/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers-getter.js @@ -3,9 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Polymorphic-Mixin-MegaReceivers-Getter', [1000], [ - new Benchmark('Polymorphic-Mixin-MegaReceivers-Getter', false, false, - DETERMINISTIC_RUNS, runBenchmark) +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers.js b/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers.js index 5967b28368..0e115bf6f9 100644 --- a/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers.js +++ b/test/js-perf-test/SuperIC/polymorphic-mixin-mega-receivers.js @@ -3,12 +3,10 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Polymorphic-Mixin-MegaReceivers', [1000], [ - new Benchmark('Polymorphic-Mixin-MegaReceivers', false, false, - DETERMINISTIC_RUNS, runBenchmark) +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); - function createSubclass() { class A { }; A.prototype.super_prop = 10; diff --git a/test/js-perf-test/SuperIC/polymorphic-mixin.js b/test/js-perf-test/SuperIC/polymorphic-mixin.js index 24ad31aac8..e9b797a0b7 100644 --- a/test/js-perf-test/SuperIC/polymorphic-mixin.js +++ b/test/js-perf-test/SuperIC/polymorphic-mixin.js @@ -3,8 +3,8 @@ // found in the LICENSE file. const DETERMINISTIC_RUNS = 10000; -new BenchmarkSuite('Polymorphic-Mixin', [1000], [ - new Benchmark('Polymorphic-Mixin', false, false, DETERMINISTIC_RUNS, +new BenchmarkSuite(BENCHMARK_NAME, [1000], [ + new Benchmark(BENCHMARK_NAME, false, false, DETERMINISTIC_RUNS, runBenchmark) ]); diff --git a/test/js-perf-test/SuperIC/run.js b/test/js-perf-test/SuperIC/run.js index fd5e7341e1..64e306a79d 100644 --- a/test/js-perf-test/SuperIC/run.js +++ b/test/js-perf-test/SuperIC/run.js @@ -3,6 +3,8 @@ // found in the LICENSE file. load('../base.js'); + +BENCHMARK_NAME = arguments[1]; load(arguments[0] + '.js'); var success = true;