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:
9 days ago
Test name
Executions per second
Intl.NumberFormat
37695.8 Ops/sec
toLocalString
750837824.0 Ops/sec
cached Intl.NumberFormat
2286292.8 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");