Run details:
Mozilla/5.0 (Linux; Android 12) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Mobile Safari/537.36
Chrome Mobile 103
Android
Mobile
2 years ago
Test name Executions per second
Date.now() 2209727.0 Ops/sec
new Date().getTime(); 1772843.2 Ops/sec
Script Preparation code:
Tests:
  • Date.now()

  • new Date().getTime();