Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Mobile Safari/537.36
Chrome Mobile 138
Android
Mobile
10 months ago
Test name Executions per second
Debiased Integer Multiplication 173292.7 Ops/sec
Bitmask with Rejection 156947.6 Ops/sec
rejection sampling of modulo bias 175135.5 Ops/sec
Script Preparation code:
Tests:
  • Classic 16

  • Mul shf 16

  • Imul shf 16

  • Classic int

  • Mul shf bigint

  • Mul shf 32

  • java nextInt16(bound)

  • java nextInt32(bound)