OLD | NEW |
(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'); |
OLD | NEW |