Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
new Intl.DateTimeFormat.format() 25758.3 Ops/sec
cached Intl.DateTimeFormat.format() 703212.5 Ops/sec
new Intl.DateTimeFormat.formatToParts 25829.0 Ops/sec
cached Intl.DateTimeFormat.formatToParts() 440294.8 Ops/sec
Script Preparation code:
Tests:
  • new Intl.DateTimeFormat.format()

  • cached Intl.DateTimeFormat.format()

  • new Intl.DateTimeFormat.formatToParts

  • cached Intl.DateTimeFormat.formatToParts()