native Date.now vs new Date.getTime (v4)

Revision 4 of this benchmark created on


Description

This testcase compares the performance between a native Date.now() call and +new Date() ( (+new Date()).getTime() )

Test runner

Ready to run.

Testing in
TestOps/sec
Date.now
Date.now();
ready
getTime
(new Date()).getTime();
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 Andreas Göbel on
  • Revision 2: published by fearphage on
  • Revision 4: published on
  • Revision 5: published by WebReflection on
  • Revision 6: published on