Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Mobile Safari/537.36
Chrome Mobile 137
Android
Mobile
10 months ago
Test name Executions per second
Math.floor 224113856.0 Ops/sec
Math.round 210108224.0 Ops/sec
Math.trunc 223717920.0 Ops/sec
parseInt 12499502.0 Ops/sec
Double Negation 445907904.0 Ops/sec
Bitwise XOR 636819840.0 Ops/sec
Bitwise OR 540315584.0 Ops/sec
Right Shift 589226752.0 Ops/sec
Unsigned Right Shift 543267584.0 Ops/sec
Modulo 543684096.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • Double Negation

  • Bitwise XOR

  • Bitwise OR

  • Right Shift

  • Unsigned Right Shift

  • Modulo