Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
left shift vs math.pow vs Exponentiation
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Browser:
Chrome 122
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Exponentiation
82.3M/s
left shfit
81.2M/s
Math.pow
5.7M/s
View exact numbers
Test name
Executions per second
✓
Exponentiation
82,280,376 Ops/sec
left shfit
81,235,376 Ops/sec
Math.pow
5,711,712 Ops/sec
Tests:
left shfit
const a = 4 << 15;
Math.pow
const a = 4 * Math.pow(2, 15);
Exponentiation
const a = 4 * (2 ** 15);