Commit f3131cef authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[js-perf-test] Fix benchmark suite

Add missing parameters to createSuiteWithWarmup

Change-Id: I8865f162443b43b8b7bee4680e17c34d397f8d53
Reviewed-on: https://chromium-review.googlesource.com/1078747
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53438}
parent 63c4c76c
...@@ -65,15 +65,14 @@ function BenchmarkSuite(name, reference, benchmarks) { ...@@ -65,15 +65,14 @@ function BenchmarkSuite(name, reference, benchmarks) {
BenchmarkSuite.suites.push(this); BenchmarkSuite.suites.push(this);
} }
function createSuite(name, count, test, testSetup, tearDown) { function createSuite(name, reference, run, setup, tearDown) {
return new BenchmarkSuite(name, [count], [ return new BenchmarkSuite(name, [reference], [
new Benchmark(name, false, false, 0, test, testSetup, tearDown)]); new Benchmark(name, false, false, 0, run, setup, tearDown)]);
} }
function createSuiteWithWarmup(name, count, testSetup, tearDown) { function createSuiteWithWarmup(name, reference, run, setup, tearDown) {
new BenchmarkSuite(name, [count], [ return new BenchmarkSuite(name, [reference], [
new Benchmark(name, true, false, 0, fn), new Benchmark(name, true, false, 0, run, setup, tearDown)]);
]);
} }
// Keep track of all declared benchmark suites. // Keep track of all declared benchmark suites.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment