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:
one month ago
Test name
Executions per second
Modulo
83508800.0 Ops/sec
Bitwise
82516168.0 Ops/sec
Script Preparation code:
var num = 120;
Tests:
Modulo
num % 2 == 0
Bitwise
!(num & 1)