Tests:
  • Math.floor

  • Math.round

  • Math.trunc

  • parseInt

  • Double Negation

  • Bitwise XOR

  • Bitwise OR

  • Right Shift

  • Unsigned Right Shift

  • Modulo

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.floor
    Math.round
    Math.trunc
    parseInt
    Double Negation
    Bitwise XOR
    Bitwise OR
    Right Shift
    Unsigned Right Shift
    Modulo

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
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 on Android
View result in a separate tab
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