Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
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
Test name
Executions per second
left unshift
149634.9 Ops/sec
times two
74529.2 Ops/sec
Tests:
left unshift
console.log(34 << 1)
times two
console.log(34 * 2)