Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
split vs slice date ranges for cally
Javascript split vs slice performance
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Browser:
Firefox 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
slice
796.6M/s
substring
793.9M/s
split
4.7M/s
View exact numbers
Test name
Executions per second
✓
slice
796,644,032 Ops/sec
substring
793,885,184 Ops/sec
split
4,730,187 Ops/sec
Script Preparation code:
var date = "31/03/2025 - 06/03/2025";
Tests:
split
const [start, end] = date.split("/");
slice
const start = date.slice(0, 10); const end = date.slice(13, 23);
substring
const start = date.substring(0, 10); const end = date.substring(13, 23);