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

Benchmark created by Will Alexander on


Description

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

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

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