MCPcopy Create free account
hub / github.com/nodejs/node / RunStep

Function RunStep

deps/v8/test/js-perf-test/base.js:133–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

base.jsFile · 0.85

Calls 4

continuationFunction · 0.50
indexOfMethod · 0.45
RunStepMethod · 0.45
setTimeoutMethod · 0.45

Tested by

no test coverage detected