Math.random vs Date.now vs new Date (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Math.random
Math.random()
ready
Date.now
Date.now()
ready
new Date
new Date
ready
+new Date
+new Date
ready

Revisions

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