Fastest way to get the current date timestamp (v3)

Revision 3 of this benchmark created on


Description

Testing for the fastest way to get a date timestamp on various browsers...

Test runner

Ready to run.

Testing in
TestOps/sec
plain
for(var i = 1000; i > 0; i--) {
console.log(Date.now())
}
ready
Stored in var
var a = Date.now()
for(var i = 1000; i > 0; i--) {
console.log(a)
}
ready

Revisions

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