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 52315516.0 Ops/sec
Math.round 54149984.0 Ops/sec
Math.trunc 52033556.0 Ops/sec
parseInt 39886944.0 Ops/sec
double negation 55975448.0 Ops/sec
bitwise XOR 51264748.0 Ops/sec
bitwise OR 56603556.0 Ops/sec
Right shift 57315928.0 Ops/sec
Unsigned right shift 49288260.0 Ops/sec
Modulo 52714628.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo