Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency number
(version: 1)
Comparing performance of:
cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString
Created:
one year ago
by:
Registered User
Jump to the latest result
Tests:
cached Intl.NumberFormat
window.a = window.a || new Intl.NumberFormat('en-US', { style: 'currency', currency: 'EUR' }); window.a.format(10000)
new Intl.NumberFormat
new Intl.NumberFormat('en-US', { style: 'currency', currency: 'EUR' }).format(10000);
toLocaleString
(10000).toLocaleString('en-US', { style: 'currency', currency: 'EUR' })
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
cached Intl.NumberFormat
new Intl.NumberFormat
toLocaleString
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 YaBrowser/24.12.0.0 Safari/537.36
Browser/OS:
Yandex Browser 24 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
cached Intl.NumberFormat
4559317.5 Ops/sec
new Intl.NumberFormat
60884.7 Ops/sec
toLocaleString
63663.7 Ops/sec
Related benchmarks:
cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString
cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency
cached Intl.NumberFormat vs new Intl.NumberFormat vs Number toLocaleString currency
Number.toLocaleString vs Intl.NumberFormat 2
Intl.NumberFormat vs Number.toLocaleString
Intl.NumberFormat vs toLocalString vs Custom Format vs Pre-created Intl formatter
What's faster? cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency
Number.toLocaleString vs Intl.NumberFormat (single instance)
cached Intl.NumberFormat vs new Intl.NumberFormat vs toLocaleString currency loop
Comments
Confirm delete:
Do you really want to delete benchmark?