MCPcopy Create free account
hub / github.com/RenderKit/embree / benchmark_loop

Method benchmark_loop

tutorials/verify/verify.cpp:519–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517 }
518
519 Statistics VerifyApplication::Benchmark::benchmark_loop(VerifyApplication* state)
520 {
521 //sleepSeconds(0.1);
522 const size_t skipBenchmarkFrames = 1;
523 const size_t numBenchmarkFrames = 8;
524 FilteredStatistics stat(0.5f,0.0f);
525 size_t numTotalFrames = skipBenchmarkFrames + numBenchmarkFrames;
526 for (size_t i=0; i<skipBenchmarkFrames; i++) {
527 benchmark(state);
528 }
529 for (size_t i=skipBenchmarkFrames; i<numTotalFrames; i++) {
530 stat.add(benchmark(state));
531 }
532 return stat.getStatistics();
533 }
534
535 VerifyApplication::TestReturnValue VerifyApplication::Benchmark::execute(VerifyApplication* state, bool silent) try
536 {

Callers 1

VerifyApplicationMethod · 0.80

Calls 2

addMethod · 0.45
getStatisticsMethod · 0.45

Tested by

no test coverage detected