Instantiating Intl.NumberFormat

Benchmark created on


Setup

const formatter = new Intl.NumberFormat({
    style: 'currency',
    currency: 'GBP'
})

Test runner

Ready to run.

Testing in
TestOps/sec
Instantiate
new Intl.NumberFormat({ style: 'currency', currency: 'GBP' }).format(1000)
ready
Cache
formatter.format(1000)
ready

Revisions

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