Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Test class map parsing
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/123.0.0.0 Safari/537.36
Browser:
Chrome 123
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
slice
6.3M/s
split index
3.2M/s
split destructure
3.2M/s
View exact numbers
Test name
Executions per second
✓
slice
6,283,348 Ops/sec
split index
3,231,240 Ops/sec
split destructure
3,219,638 Ops/sec
Script Preparation code:
value = '#container'
Tests:
split destructure
const [_, name] = value.split('#', 2)
split index
const name = value.split('#', 2)[1]
slice
const name = value.slice(1)