Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Intl.NumberFormat 221024
(version: 0)
Comparing performance of:
Cached vs Non cached
Created:
one year ago
by:
Registered User
Jump to the latest result
Tests:
Cached
const NUMBER_GROUPING_FORMATTER = new Intl.NumberFormat( 'en-US', // Any country with thousand separator , { style: 'decimal', useGrouping: true, }, ); for (let i = 0; i < 1_000; i++) { NUMBER_GROUPING_FORMATTER.format(i) }
Non cached
for (let i = 0; i < 1000; i++) { const NUMBER_GROUPING_FORMATTER = new Intl.NumberFormat( 'en-US', // Any country with thousand separator , { style: 'decimal', useGrouping: true, }, ); NUMBER_GROUPING_FORMATTER.format(i) }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Cached
Non cached
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Browser/OS:
Chrome 128 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Cached
2063.5 Ops/sec
Non cached
36.5 Ops/sec
Related benchmarks:
Number.toLocaleString vs Intl.NumberFormat3
Number.toLocaleString vs Intl.NumberFormat4
Intl.NumberFormat vs toLocaleString vs Custom Formatter vs Pre-created Intl formatter
Number.toLocaleString vs Intl.NumberFormat memory pressure
Intl.NumberFormat vs Intl.NumberFormat-memo
Intl.NumberFormat
Testing Intl performance
Comments
Confirm delete:
Do you really want to delete benchmark?