Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
What's faster unshifting left by 1 or multiplying by 2
Benchmark description
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:125.0) Gecko/20100101 Firefox/125.0
Browser:
Firefox 125
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
left unshift
150K/s
times two
75K/s
View exact numbers
Test name
Executions per second
✓
left unshift
149,635 Ops/sec
times two
74,529 Ops/sec
Tests:
left unshift
console.log(34 << 1)
times two
console.log(34 * 2)