Run details:
Mozilla/5.0 (Linux; U; Android 9; en-US; LM-Q710.FG Build/PKQ1.190522.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.12.9.1226 Mobile Safari/537.36
UC Browser 12
Android
Mobile
3 years ago
Test name Executions per second
Date.now() 191582.4 Ops/sec
new Date().getTime(); 158464.2 Ops/sec
performance.now() 147114.9 Ops/sec
Script Preparation code:
Tests:
  • Date.now()

  • new Date().getTime();

  • performance.now()