Script Preparation code:
Tests:
  • Bitwise complement

  • Bitwise shift

  • Math.trunc()

  • Math.round()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Bitwise complement
    Bitwise shift
    Math.trunc()
    Math.round()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
Test name Executions per second
Bitwise complement 36879.3 Ops/sec
Bitwise shift 36566.1 Ops/sec
Math.trunc() 40427.0 Ops/sec
Math.round() 35162.2 Ops/sec