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 42401312.0 Ops/sec
Math.round 21894718.0 Ops/sec
Math.trunc 9570433.0 Ops/sec
parseInt 6605491.0 Ops/sec
double negation 10537463.0 Ops/sec
bitwise XOR 43104744.0 Ops/sec
bitwise OR 14228002.0 Ops/sec
Right shift 7674339.5 Ops/sec
Unsigned right shift 14932511.0 Ops/sec
Modulo 40587608.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo