1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-03 03:48:04 +02:00

Added more information to DOMRect performance test

This commit is contained in:
kkapsner 2019-05-09 23:10:22 +02:00
parent e441a3f668
commit c1e92dcceb

View File

@ -109,7 +109,11 @@
);
}
}
alert((count / (duration / 1000)).toFixed(2) + " tests/s (" + count + " samples)");
alert(
(count / (duration / 1000)).toFixed(2) + " tests/s\n" +
(duration * 1000 / count).toFixed(2) + " µs/test\n" +
"(" + count + " samples)"
);
};
}());