OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 load('../base.js'); | 6 load('../base.js'); |
| 7 |
| 8 // Provided for comparison against native implementations. |
| 9 // Generated via `lodash includes=values,toPairs`, using |
| 10 // https://www.npmjs.com/package/lodash-cli |
| 11 load('lodash.custom.js'); |
| 12 |
7 load('assign.js'); | 13 load('assign.js'); |
| 14 load('values-lodash.js'); |
| 15 load('values.js'); |
| 16 load('entries-lodash.js'); |
| 17 load('entries.js'); |
8 | 18 |
9 var success = true; | 19 var success = true; |
10 | 20 |
11 function PrintResult(name, result) { | 21 function PrintResult(name, result) { |
12 print(name + '-Object(Score): ' + result); | 22 print(name + '-Object(Score): ' + result); |
13 } | 23 } |
14 | 24 |
15 | 25 |
16 function PrintError(name, error) { | 26 function PrintError(name, error) { |
17 PrintResult(name, error); | 27 PrintResult(name, error); |
18 success = false; | 28 success = false; |
19 } | 29 } |
20 | 30 |
21 | 31 |
22 BenchmarkSuite.config.doWarmup = undefined; | 32 BenchmarkSuite.config.doWarmup = undefined; |
23 BenchmarkSuite.config.doDeterministic = undefined; | 33 BenchmarkSuite.config.doDeterministic = undefined; |
24 | 34 |
25 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, | 35 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, |
26 NotifyError: PrintError }); | 36 NotifyError: PrintError }); |
OLD | NEW |