Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Testing Intl performance
(version: 0)
Comparing performance of:
Global Intl vs Intl per-iteration
Created:
one year ago
by:
Guest
Jump to the latest result
Tests:
Global Intl
var nf = new Intl.NumberFormat('fr', {style: 'currency', currency: 'USD'}); for (var i = 0; i < 2000; i += 1) { nf.format(i); }
Intl per-iteration
for (var i = 0; i < 2000; i += 1) { new Intl.NumberFormat('fr', {style: 'currency', currency: 'USD'}).format(i); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Global Intl
Intl per-iteration
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Global Intl
1266.1 Ops/sec
Intl per-iteration
31.3 Ops/sec
Related benchmarks:
Number.toLocaleString vs Intl.NumberFormat3
Number.toLocaleString vs Intl.NumberFormat4
Number.toLocaleString vs Intl.NumberFormat5
Intl.NumberFormat vs toLocaleString vs Custom Formatter vs Pre-created Intl formatter
Number.toLocaleString vs Intl.NumberFormat (multiple values)
Intl.NumberFormat
NumberFormat
Comments
Confirm delete:
Do you really want to delete benchmark?