Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
split index 0 vs regex replace
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0
Browser:
Firefox 130
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
replace regex
14.5M/s
split index 0
13.8M/s
View exact numbers
Test name
Executions per second
✓
replace regex
14,546,031 Ops/sec
split index 0
13,772,821 Ops/sec
Tests:
replace regex
'20240910T13:45:22.030Z'.replace(/T.*$/, '');
split index 0
'20240910T13:45:22.030Z'.split("T")[0];