Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Largest multiple of number less than a uniform source size
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser:
Chrome 138
Operating system:
Linux
Device Platform:
Desktop
Date tested:
10 months ago
Test name
Executions per second
modulo
107212720.0 Ops/sec
division, unsigned right shift
119060968.0 Ops/sec
Script Preparation code:
const FULL = 2_097_152; const bound = 12818;
Tests:
modulo
return FULL - (FULL % bound);
division, unsigned right shift
return bound * (FULL / bound >>> 0);