Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138
Linux
Desktop
10 months ago
Test name Executions per second
Math.floor 125039504.0 Ops/sec
Math.round 118154936.0 Ops/sec
Math.trunc 114486896.0 Ops/sec
parseInt 73375520.0 Ops/sec
double negation 120795200.0 Ops/sec
bitwise XOR 114238592.0 Ops/sec
bitwise OR 117617856.0 Ops/sec
Right shift 115006632.0 Ops/sec
Unsigned right shift 113575224.0 Ops/sec
Modulo 109101368.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo