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 |
| 6 load('../base.js'); |
| 7 |
| 8 load('ctor.js'); |
| 9 load('exec.js'); |
| 10 load('flags.js'); |
| 11 load('match.js'); |
| 12 load('replace.js'); |
| 13 load('search.js'); |
| 14 load('split.js'); |
| 15 load('test.js'); |
| 16 load('slow_exec.js'); |
| 17 load('slow_flags.js'); |
| 18 load('slow_match.js'); |
| 19 load('slow_replace.js'); |
| 20 load('slow_search.js'); |
| 21 load('slow_split.js'); |
| 22 load('slow_test.js'); |
| 23 |
| 24 var success = true; |
| 25 |
| 26 function PrintResult(name, result) { |
| 27 print(name + '-RegExp(Score): ' + result); |
| 28 } |
| 29 |
| 30 |
| 31 function PrintError(name, error) { |
| 32 PrintResult(name, error); |
| 33 success = false; |
| 34 } |
| 35 |
| 36 |
| 37 BenchmarkSuite.config.doWarmup = undefined; |
| 38 BenchmarkSuite.config.doDeterministic = undefined; |
| 39 |
| 40 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, |
| 41 NotifyError: PrintError }); |
OLD | NEW |