Run details:
Mozilla/5.0 (Android 15; Mobile; rv:132.0) Gecko/132.0 Firefox/132.0
Firefox Mobile 132
Android
Mobile
one month ago
Test name Executions per second
new Date() 1368997.0 Ops/sec
Intl.DateTimeFormat() 331256.0 Ops/sec
Date().toLocaleString() 10320.2 Ops/sec
JavaScript Date Time format 2495824.2 Ops/sec
JavaScript Date Time format using Template Strings. 2323810.5 Ops/sec
Script Preparation code:
Tests:
  • new Date()

  • Intl.DateTimeFormat()

  • Date().toLocaleString()

  • JavaScript Date Time format

  • JavaScript Date Time format using Template Strings.