MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / reportResult

Method reportResult

pocs/vdot/q8dot.cpp:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 ++nloop;
106 }
107 void reportResult(const char* title) const {
108 if (nloop < 1) {
109 printf("%s(%s): no result\n",__func__,title);
110 return;
111 }
112 printf("============ %s\n",title);
113 printf("<dot> = %g\n",sum/nloop);
114 auto t = sumt/nloop, dt = sumt2/nloop - t*t;
115 if (dt > 0) dt = sqrt(dt);
116 printf("<time> = %g +/- %g us. Max. time = %g us.\n",t,dt,maxt);
117 }
118};
119
120

Callers 1

mainFunction · 0.45

Calls 2

printfFunction · 0.85
sqrtFunction · 0.85

Tested by

no test coverage detected