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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 load('benchmark.js');
6 load('traceur-runtime.js');
7
8 function benchTest(test, type, fn) {
9 var name = test + '-' + type;
10 var bench = new Benchmark(name, fn);
11 bench.on('complete', function() {
12 print(name + '(Score): ' + bench.count);
13 });
14 bench.options.maxTime = 1;
15 bench.run();
16 }
17
18 load('spread/spread__es5.js');
19 load('spread/spread__es6.js');
20 load('spread/spread__traceur.js');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698