Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Windows
Desktop
one year ago
Test name Executions per second
performance.now() 3006471.8 Ops/sec
Date.now() 4475976.5 Ops/sec
new Date().getTime(); 3747645.0 Ops/sec
Script Preparation code:
Tests:
  • performance.now()

  • Date.now()

  • new Date().getTime();


;