Date.now vs Date.valueOf vs Number(Date) (v2)

Revision 2 of this benchmark created by Kristof Neirynck on


Description

Add +new Date() to the existing tests against Date.now, new Date.getTime() and Number(new Date)

Test runner

Ready to run.

Testing in
TestOps/sec
Date.now()
Date.now()
ready
Date.getTime
new Date().getTime()
ready
Number( new Date)
Number(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.

  • Revision 1: published by Will Alexander on
  • Revision 2: published by Kristof Neirynck on