Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
19 days ago
Test name Executions per second
Date.now() 15060905.0 Ops/sec
new Date().getTime(); 11127788.0 Ops/sec
performance.now(); 8325866.0 Ops/sec
console.time(); 250804.0 Ops/sec
Script Preparation code:
Tests:
  • Date.now()

  • new Date().getTime();

  • performance.now();

  • console.time();