timestamp

Benchmark created on


Description

timestamp test

Test runner

Ready to run.

Testing in
TestOps/sec
performance
const iters = 1000000;
let accum = 0;

for (let i = 0; i < iters; i++) {
	accum = (accum + performance.now()) & 0xFFFFFFFF;
}

console.log(accum);
ready
date
const iters = 1000000;
let accum = 0;

for (let i = 0; i < iters; i++) {
	accum = (accum + Date.now()) & 0xFFFFFFFF;
}

console.log(accum);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.