Reusing Intl.NumberFormat instances (v2)

Revision 2 of this benchmark created on


Setup

window.formatter = new Intl.NumberFormat('en')

Teardown

window.formatter = undefined

Test runner

Ready to run.

Testing in
TestOps/sec
Fresh instance
const formatter = new Intl.NumberFormat('en')
formatter.format(1051285)
ready
Reused instance
window.formatter.format(1051285)
ready

Revisions

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