mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-08 20:54:49 +01:00
Added standard deviation to performance test
This commit is contained in:
parent
91c3c34412
commit
a9edf45aa8
@ -53,7 +53,8 @@ var performTest = function(){
|
|||||||
var totalRunI = outerI * innerRunLength;
|
var totalRunI = outerI * innerRunLength;
|
||||||
line(
|
line(
|
||||||
"finished run " + totalRunI + " from " + (innerRunLength * outerRunLength) +
|
"finished run " + totalRunI + " from " + (innerRunLength * outerRunLength) +
|
||||||
" -> average: " + (time / totalRunI).toFixed(2) + "ms" +
|
" -> average: " + (time / totalRunI).toFixed(2) +
|
||||||
|
"(\u00B1" + Math.sqrt((time2 - time * time / totalRunI) / totalRunI).toFixed(2) + ") ms " +
|
||||||
"(min: " + min.toFixed(2) + "ms, max: " + max.toFixed(2) + "ms)"
|
"(min: " + min.toFixed(2) + "ms, max: " + max.toFixed(2) + "ms)"
|
||||||
);
|
);
|
||||||
if (outerI < outerRunLength){
|
if (outerI < outerRunLength){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user