Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Intl.NumberFormat vs string
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0
Browser:
Firefox 137
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Intl.NumberFormat
73016.1 Ops/sec
toLocalString
309728576.0 Ops/sec
Script Preparation code:
const priceCurrency = "CZK" const price = "121.0"
Tests:
Intl.NumberFormat
return new Intl.NumberFormat('cs-CZ', { style: 'currency', currency: priceCurrency , minimumFractionDigits: 0 }).format(Number(price));
toLocalString
return `${priceCurrency} ${price}`;