Run details:
Mozilla/5.0 (Android 11; Mobile; rv:89.0) Gecko/89.0 Firefox/89.0
Firefox Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
Date.now() 6052945.0 Ops/sec
new Date().getTime(); 3562294.5 Ops/sec
performance.now() 2164724.5 Ops/sec
Script Preparation code:
Tests:
  • Date.now()

  • new Date().getTime();

  • performance.now()