mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2024-12-22 21:00:23 +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;
|
||||
line(
|
||||
"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)"
|
||||
);
|
||||
if (outerI < outerRunLength){
|
||||
|
Loading…
x
Reference in New Issue
Block a user