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
times two
253K/s
left unshift
243K/s
View exact numbers
Test name
Executions per second
✓
times two
253,225 Ops/sec
left unshift
243,290 Ops/sec
Tests:
left unshift
console.log(34 << 1)
times two
console.log(34 * 2)