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; rv:140.0) Gecko/20100101 Firefox/140.0
Browser:
Firefox 140
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
division, unsigned right shift
1098.3M/s
modulo
980.1M/s
View exact numbers
Test name
Executions per second
✓
division, unsigned right shift
1,098,306,688 Ops/sec
modulo
980,051,392 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);