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
Test name
Executions per second
left shfit
81235376.0 Ops/sec
Math.pow
5711711.5 Ops/sec
Exponentiation
82280376.0 Ops/sec
Tests:
left shfit
const a = 4 << 15;
Math.pow
const a = 4 * Math.pow(2, 15);
Exponentiation
const a = 4 * (2 ** 15);