Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Bitshift vs multiply by power of two
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser:
Firefox 147
Operating system:
Linux
Device Platform:
Desktop
Date tested:
3 months ago
Test name
Executions per second
Bitshift
1501584640.0 Ops/sec
Multiply by power
1502538368.0 Ops/sec
Multiply by number
1505392256.0 Ops/sec
Script Preparation code:
let a = 2; let b = 5; let c = Math.pow(a,b);
Tests:
Bitshift
a << b;
Multiply by power
Math.pow(a,b);
Multiply by number
a * c;