Script Preparation code:
Tests:
  • Date.now()

  • new Date().getTime();

  • performance.now();

  • console.time();

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Date.now()
    new Date().getTime();
    performance.now();
    console.time();

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36
Chrome Mobile 131 on Android
View result in a separate tab
Test name Executions per second
Date.now() 3349938.0 Ops/sec
new Date().getTime(); 3079007.8 Ops/sec
performance.now(); 2555236.0 Ops/sec
console.time(); 53862.1 Ops/sec