Run details:
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
Android
Mobile
3 months ago
Test name Executions per second
new Date(dateTimeISO) 911994.1 Ops/sec
new Date(normalizeToLocalDate(dateTimeISO)) 858043.6 Ops/sec
new Date(dateOnlyISO) 1095093.2 Ops/sec
new Date(normalizeToLocalDate(dateOnlyISO)) 730371.9 Ops/sec
Script Preparation code:
Tests:
  • new Date(dateTimeISO)

  • new Date(normalizeToLocalDate(dateTimeISO))

  • new Date(dateOnlyISO)

  • new Date(normalizeToLocalDate(dateOnlyISO))