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
Math.floor 56705420.0 Ops/sec
Math.round 50884392.0 Ops/sec
Math.trunc 50526980.0 Ops/sec
parseInt 40275380.0 Ops/sec
double negation 55109012.0 Ops/sec
bitwise XOR 55147304.0 Ops/sec
bitwise OR 55566760.0 Ops/sec
Right shift 57213080.0 Ops/sec
Unsigned right shift 56245116.0 Ops/sec
Modulo 51788848.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo