Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Intl.NumberFormat vs toLocalStringaa
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:150.0) Gecko/20100101 Firefox/150.0
Browser:
Firefox 150
Operating system:
Windows
Device Platform:
Desktop
Date tested:
3 months ago
toLocalString
750.8M/s
cached Intl.NumberFormat
2.3M/s
Intl.NumberFormat
38K/s
View exact numbers
Test name
Executions per second
✓
toLocalString
750,837,824 Ops/sec
cached Intl.NumberFormat
2,286,293 Ops/sec
Intl.NumberFormat
37,696 Ops/sec
Script Preparation code:
var formatter = Intl.NumberFormat("en-US");
Tests:
Intl.NumberFormat
var a = new Intl.NumberFormat("en-US").format("10000");
toLocalString
var a = "10000".toLocaleString("en-US");
cached Intl.NumberFormat
var a = formatter.format("10000");