| 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');
|
|
|