()
| 131 | BenchmarkSuite.scores = []; |
| 132 | var index = 0; |
| 133 | function RunStep() { |
| 134 | while (continuation || index < length) { |
| 135 | if (continuation) { |
| 136 | continuation = continuation(); |
| 137 | } else { |
| 138 | var suite = suites[index++]; |
| 139 | if (runner.NotifyStart) runner.NotifyStart(suite.name); |
| 140 | if (skipBenchmarks.indexOf(suite.name) > -1) { |
| 141 | suite.NotifySkipped(runner); |
| 142 | } else { |
| 143 | continuation = suite.RunStep(runner); |
| 144 | } |
| 145 | } |
| 146 | if (continuation && typeof window != 'undefined' && window.setTimeout) { |
| 147 | window.setTimeout(RunStep, 25); |
| 148 | return; |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | // show final result |
| 153 | if (runner.NotifyScore) { |
| 154 | var score = BenchmarkSuite.GeometricMean(BenchmarkSuite.scores); |
| 155 | var formatted = BenchmarkSuite.FormatScore(100 * score); |
| 156 | runner.NotifyScore(formatted); |
| 157 | } |
| 158 | } |
| 159 | RunStep(); |
| 160 | } |
| 161 |
no test coverage detected