Script Preparation code:
Tests:

Historical Performance Data aggregated from 25 community runs

Desktop Results:
Chrome 19 runs
Bitwise
67.2M/s
Math.floor
31.8M/s

Fastest: Bitwise (2.1x faster)

View exact numbers
  • Bitwise: 67,208,808 ops/sec
  • Math.floor: 31,767,204 ops/sec
Firefox 6 runs
Bitwise
630.8M/s
Math.floor
58.9M/s

Fastest: Bitwise (10.7x faster)

View exact numbers
  • Bitwise: 630,804,608 ops/sec
  • Math.floor: 58,889,524 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.floor
    Bitwise

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36 Edg/151.0.0.0
Chrome 151 on Windows
View result in a separate tab
Math.floor
196.3M/s
Bitwise
190.6M/s
View exact numbers
Test name Executions per second
Math.floor 196,273,344 Ops/sec
Bitwise 190,635,584 Ops/sec