Script Preparation code:
Tests:
  • new Date(dateTimeISO)

  • new Date(normalizeToLocalDate(dateTimeISO))

  • new Date(dateOnlyISO)

  • new Date(normalizeToLocalDate(dateOnlyISO))

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Date(dateTimeISO)
    new Date(normalizeToLocalDate(dateTimeISO))
    new Date(dateOnlyISO)
    new Date(normalizeToLocalDate(dateOnlyISO))

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Mobile Safari/537.36
Chrome Mobile 128 on Android
View result in a separate tab
Test name Executions per second
new Date(dateTimeISO) 911994.1 Ops/sec
new Date(normalizeToLocalDate(dateTimeISO)) 858043.6 Ops/sec
new Date(dateOnlyISO) 1095093.0 Ops/sec
new Date(normalizeToLocalDate(dateOnlyISO)) 730371.9 Ops/sec