From c1e92dcceb077a83e13e25977ff124f69826e2c9 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Thu, 9 May 2019 23:10:22 +0200 Subject: [PATCH] Added more information to DOMRect performance test --- test/domRectTest.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/domRectTest.js b/test/domRectTest.js index 921396d..06ad9d9 100644 --- a/test/domRectTest.js +++ b/test/domRectTest.js @@ -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)" + ); }; }());