Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Bitshift vs multiply by power of two
(version: 1)
Comparing performance of:
Bitshift vs Multiply by power vs Multiply by number
Created:
8 months ago
by:
Guest
Jump to the latest result
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;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Bitshift
Multiply by power
Multiply by number
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
3 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0
Browser/OS:
Firefox 147 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Bitshift
1501584640.0 Ops/sec
Multiply by power
1502538368.0 Ops/sec
Multiply by number
1505392256.0 Ops/sec
Related benchmarks:
math pow vs multiply vs multiply2
math pow vs multiply -2222
Math.pow() vs exponentiation operator
Math.pow vs Exponentiation vs Multiplication
Math.pow vs Exponentiation vs Multiplication pow 4
2math pow vs multiply
math.pow vs multiply vs exponentiation
math pow N127 vs multiply
Math.pow vs Exponentiation vs Multiplication 2
Comments
Confirm delete:
Do you really want to delete benchmark?