MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / averageWorstPercentileMsecs

Function averageWorstPercentileMsecs

test/benchmark/benchmark_ffis.cpp:50–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50double averageWorstPercentileMsecs(double p)
51{
52 tick_t acc = 0;
53 int numSamples = (int)(totalRuns*p);
54 for(int i = 0; i < numSamples; ++i)
55 acc += allTicks[totalRuns-1-i];
56 return acc * 1000.0 / numSamples / ticks_per_sec();
57}
58
59int counter = 0;
60void __attribute__((noinline)) main_loop()

Callers 1

main_loopFunction · 0.85

Calls 1

ticks_per_secFunction · 0.85

Tested by

no test coverage detected