Number formatter

Benchmark created on


Setup

const formatOptions = {
  style: "decimal",
  minimumFractionDigits: 0,
  maximumFractionDigits: 2,
  useGrouping: false,
}
const cachedNumberFormat = Intl.NumberFormat('de-DE', formatOptions)

Test runner

Ready to run.

Testing in
TestOps/sec
cached
cachedNumberFormat.format(12023.24124)
ready
new instance
Intl.NumberFormat('de-DE', formatOptions).format(12023.24124)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.