Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
slice and substring
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0
Browser:
Firefox 138
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
slice
668.8M/s
substring
660.7M/s
View exact numbers
Test name
Executions per second
✓
slice
668,841,792 Ops/sec
substring
660,708,160 Ops/sec
Tests:
slice
let x = 'hello' x.slice(1)
substring
let x = 'hello' x.substring(1)