Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Unified Diff: test/js-perf-test/SixSpeed/run.js

Issue 2467483002: Add spread call micro-benchmarks. (Closed)
Patch Set: rename Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/js-perf-test/SixSpeed/run.js
diff --git a/test/js-perf-test/SixSpeed/run.js b/test/js-perf-test/SixSpeed/run.js
new file mode 100644
index 0000000000000000000000000000000000000000..48c591c0f8f337ba149ca795343c20e0264bcd5e
--- /dev/null
+++ b/test/js-perf-test/SixSpeed/run.js
@@ -0,0 +1,20 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+load('benchmark.js');
+load('traceur-runtime.js');
+
+function benchTest(test, type, fn) {
+ var name = test + '-' + type;
+ var bench = new Benchmark(name, fn);
+ bench.on('complete', function() {
+ print(name + '(Score): ' + bench.count);
+ });
+ bench.options.maxTime = 1;
+ bench.run();
+}
+
+load('spread/spread__es5.js');
+load('spread/spread__es6.js');
+load('spread/spread__traceur.js');

Powered by Google App Engine
This is Rietveld 408576698