Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: js/worker.js

Issue 7821018: Add Richards and DeltaBlue benchmarks (Closed) Base URL: https://code.google.com/p/web-shootout/@master
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « js/setup_benchmarks.js ('k') | nacl/Makefile » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 2
3 self.addEventListener('message', function(e) { 3 self.addEventListener('message', function(e) {
4 var msgtype = e.data.type; 4 var msgtype = e.data.type;
5 var msg = e.data.msg; 5 var msg = e.data.msg;
6 switch (msgtype) { 6 switch (msgtype) {
7 case "runsmall": 7 case "runsmall":
8 RunSmall(); 8 RunSmall();
9 break; 9 break;
10 case "runlarge": 10 case "runlarge":
11 RunLarge(); 11 RunLarge();
12 break; 12 break;
13 default: 13 default:
14 throw msg; 14 throw msg;
15 break; 15 break;
16 } 16 }
17 }, false); 17 }, false);
18 18
19 importScripts('base.js'); 19 importScripts('base.js');
20 importScripts('fasta_10k_ref_output.js'); 20 importScripts('fasta_10k_ref_output.js');
21 importScripts('io_replacement.js'); 21 importScripts('io_replacement.js');
22 importScripts('biginteger.js'); 22 importScripts('biginteger.js');
23
24 importScripts('richards.js');
25 importScripts('deltablue.js');
23 importScripts('fannkuchredux.js'); 26 importScripts('fannkuchredux.js');
24 importScripts('fasta.js'); 27 importScripts('fasta.js');
25 importScripts('revcomp.js'); 28 importScripts('revcomp.js');
26 importScripts('binarytrees.js'); 29 importScripts('binarytrees.js');
27 importScripts('knucleotide.js'); 30 importScripts('knucleotide.js');
28 importScripts('nbody.js'); 31 importScripts('nbody.js');
29 importScripts('spectralnorm.js'); 32 importScripts('spectralnorm.js');
30 importScripts('pidigits.js'); 33 importScripts('pidigits.js');
31 34
32 importScripts('setup_benchmarks.js'); 35 importScripts('setup_benchmarks.js');
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 benchmarks = BenchmarkSuite.CountBenchmarks(); 89 benchmarks = BenchmarkSuite.CountBenchmarks();
87 WWShowProgress("benchmark"); 90 WWShowProgress("benchmark");
88 BenchmarkSuite.RunSuites({ NotifyStep: WWShowProgress, 91 BenchmarkSuite.RunSuites({ NotifyStep: WWShowProgress,
89 NotifyStart: WWAddStart, 92 NotifyStart: WWAddStart,
90 NotifyError: WWAddError, 93 NotifyError: WWAddError,
91 NotifyResult: WWAddResult, 94 NotifyResult: WWAddResult,
92 NotifyScore: WWAddScore }); 95 NotifyScore: WWAddScore });
93 started = 0; 96 started = 0;
94 ClearBenchmarks(); 97 ClearBenchmarks();
95 } 98 }
OLDNEW
« no previous file with comments | « js/setup_benchmarks.js ('k') | nacl/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698