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 50323124.0 Ops/sec
Math.round 56974540.0 Ops/sec
Math.trunc 54007760.0 Ops/sec
parseInt 45058748.0 Ops/sec
double negation 55140344.0 Ops/sec
bitwise XOR 53561576.0 Ops/sec
bitwise OR 50869592.0 Ops/sec
Right shift 53584948.0 Ops/sec
Unsigned right shift 54459916.0 Ops/sec
Modulo 58785216.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo