Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
[0] vs .shift()
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Browser:
Chrome 123
Operating system:
Linux
Device Platform:
Desktop
Date tested:
2 years ago
1
168.9M/s
2
53.6M/s
View exact numbers
Test name
Executions per second
✓
1
168,939,664 Ops/sec
2
53,557,916 Ops/sec
Tests:
1
const array = [1, 2, 3] array[0]
2
const array = [1, 2, 3] array.shift()