Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Ubuntu
Desktop
one year ago
Test name Executions per second
new Intl.DateTimeFormat.format() 5713.5 Ops/sec
cached Intl.DateTimeFormat.format() 202035.7 Ops/sec
new Intl.DateTimeFormat.formatToParts 5762.1 Ops/sec
cached Intl.DateTimeFormat.formatToParts() 125902.1 Ops/sec
Script Preparation code:
Tests:
  • new Intl.DateTimeFormat.format()

  • cached Intl.DateTimeFormat.format()

  • new Intl.DateTimeFormat.formatToParts

  • cached Intl.DateTimeFormat.formatToParts()