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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Browser:
Chrome 128
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
split index 0
41.8M/s
replace regex
22.9M/s
View exact numbers
Test name
Executions per second
✓
split index 0
41,757,772 Ops/sec
replace regex
22,936,528 Ops/sec
Tests:
replace regex
'20240910T13:45:22.030Z'.replace(/T.*$/, '');
split index 0
'20240910T13:45:22.030Z'.split("T")[0];