Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
Bitwise vs pow
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Browser:
Chrome 128
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Operand pow
158.9M/s
Bitwise pow
157.8M/s
Math.pow
14.5M/s
View exact numbers
Test name
Executions per second
✓
Operand pow
158,878,288 Ops/sec
Bitwise pow
157,786,992 Ops/sec
Math.pow
14,480,197 Ops/sec
Tests:
Math.pow
const val = Math.pow(2, 12)
Operand pow
const val = 2 ** 12
Bitwise pow
const val = (1 << 12)