| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 | 28 |
| 29 load('base.js'); | 29 load('base.js'); |
| 30 load("fasta_10k_ref_output.js"); | 30 load("fasta_10k_ref_output.js"); |
| 31 load('io_replacement.js'); | 31 load('io_replacement.js'); |
| 32 load('biginteger.js'); | 32 load('biginteger.js'); |
| 33 | 33 |
| 34 load('richards.js'); |
| 35 load('deltablue.js'); |
| 34 load('fannkuchredux.js'); | 36 load('fannkuchredux.js'); |
| 35 load('fasta.js'); | 37 load('fasta.js'); |
| 36 load('revcomp.js'); | 38 load('revcomp.js'); |
| 37 load('binarytrees.js'); | 39 load('binarytrees.js'); |
| 38 load('knucleotide.js'); | 40 load('knucleotide.js'); |
| 39 load('nbody.js'); | 41 load('nbody.js'); |
| 40 load('spectralnorm.js'); | 42 load('spectralnorm.js'); |
| 41 load('pidigits.js'); | 43 load('pidigits.js'); |
| 42 | 44 |
| 43 load('setup_benchmarks.js'); | 45 load('setup_benchmarks.js'); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 58 function PrintScore(score) { | 60 function PrintScore(score) { |
| 59 if (success) { | 61 if (success) { |
| 60 print('----'); | 62 print('----'); |
| 61 print('Score (version ' + BenchmarkSuite.version + '): ' + score); | 63 print('Score (version ' + BenchmarkSuite.version + '): ' + score); |
| 62 } | 64 } |
| 63 } | 65 } |
| 64 | 66 |
| 65 | 67 |
| 66 // Uncomment the following to run the small benchmarks for testing | 68 // Uncomment the following to run the small benchmarks for testing |
| 67 // before running the larger ones | 69 // before running the larger ones |
| 68 /* | 70 |
| 69 SetupSmallBenchmarks(); | 71 SetupSmallBenchmarks(); |
| 70 | 72 |
| 71 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, | 73 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, |
| 72 NotifyError: PrintError, | 74 NotifyError: PrintError, |
| 73 NotifyScore: PrintScore }); | 75 NotifyScore: PrintScore }); |
| 74 | 76 |
| 75 ClearBenchmarks(); | 77 ClearBenchmarks(); |
| 76 */ | 78 |
| 77 | 79 |
| 78 SetupLargeBenchmarks(); | 80 SetupLargeBenchmarks(); |
| 79 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, | 81 BenchmarkSuite.RunSuites({ NotifyResult: PrintResult, |
| 80 NotifyError: PrintError, | 82 NotifyError: PrintError, |
| 81 NotifyScore: PrintScore }); | 83 NotifyScore: PrintScore }); |
| OLD | NEW |