Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
forman
(version: 1)
Comparing performance of:
1 vs 2
Created:
10 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ const num = 12345.67;
Tests:
1
num.toLocaleString('ru-RU', { style: 'currency', currency: 'RUB' });
2
num.toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ' ').replace('.', ',');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
1
2
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser/OS:
Chrome 138 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
1
13661.8 Ops/sec
2
1259975.5 Ops/sec
Related benchmarks:
Decimal.js vs Native
Parse number to bigint
float toString() vs toFixed() for a number with many decimals
js mul vs pow
Splti vs Trim vs replace className
Nenthe
String comp
=== vs reges
Spread vs Push 2025
Comments
Confirm delete:
Do you really want to delete benchmark?