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

Method benchmark

tutorials/verify/verify.cpp:5742–5750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5740 virtual void render_block(size_t i, size_t n) = 0;
5741
5742 float benchmark(VerifyApplication* state)
5743 {
5744 double t0 = getSeconds();
5745 parallel_for((size_t)N/dN, [&](size_t i) {
5746 render_block(i*dN, dN);
5747 });
5748 double t1 = getSeconds();
5749 return 1E-6f * (float)(N)/float(t1-t0);
5750 }
5751
5752 virtual void cleanup(VerifyApplication* state)
5753 {

Callers

nothing calls this directly

Calls 2

getSecondsFunction · 0.85
parallel_forFunction · 0.85

Tested by

no test coverage detected