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

  • Date.setSeconds().toISOString()

  • Math.floor

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Date().toISOString()
    Date.setSeconds().toISOString()
    Math.floor

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.99 Safari/537.36
Chrome 93 on Windows 7
View result in a separate tab
Test name Executions per second
Date().toISOString() 468974.3 Ops/sec
Date.setSeconds().toISOString() 383152.1 Ops/sec
Math.floor 556249.3 Ops/sec