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 119294784.0 Ops/sec
Math.round 113221248.0 Ops/sec
Math.trunc 109499712.0 Ops/sec
parseInt 22684274.0 Ops/sec
Double Negation 117966736.0 Ops/sec
Bitwise XOR 126377168.0 Ops/sec
Bitwise OR 109285824.0 Ops/sec
Right Shift 108659816.0 Ops/sec
Unsigned Right Shift 116481112.0 Ops/sec
Modulo 115979144.0 Ops/sec
Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • Double Negation

  • Bitwise XOR

  • Bitwise OR

  • Right Shift

  • Unsigned Right Shift

  • Modulo