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 113513104.0 Ops/sec
Math.round 100317512.0 Ops/sec
Math.trunc 109474496.0 Ops/sec
parseInt 76918352.0 Ops/sec
double negation 113512744.0 Ops/sec
bitwise XOR 99853352.0 Ops/sec
bitwise OR 115164584.0 Ops/sec
Right shift 116640024.0 Ops/sec
Unsigned right shift 112856656.0 Ops/sec
Modulo 116996448.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • double negation

  • bitwise XOR

  • bitwise OR

  • Right shift

  • Unsigned right shift

  • Modulo