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:
10 months ago
Test name
Executions per second
modulo
980051392.0 Ops/sec
division, unsigned right shift
1098306688.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);