Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Bitwise vs modulo
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Mobile Safari/537.36
Browser:
Chrome Mobile 145
Operating system:
Android
Device Platform:
Mobile
Date tested:
4 months ago
Modulo
83.5M/s
Bitwise
82.5M/s
View exact numbers
Test name
Executions per second
✓
Modulo
83,508,800 Ops/sec
Bitwise
82,516,168 Ops/sec
Script Preparation code:
var num = 120;
Tests:
Modulo
num % 2 == 0
Bitwise
!(num & 1)