Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
0 bitshift
214.6M/s
Math.ceil()
193.3M/s

Fastest: 0 bitshift (1.1x faster)

View exact numbers
  • 0 bitshift: 214,550,768 ops/sec
  • Math.ceil(): 193,333,664 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.ceil()
    0 bitshift

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
0 bitshift
216.0M/s
Math.ceil()
194.0M/s
View exact numbers
Test name Executions per second
0 bitshift 216,025,056 Ops/sec
Math.ceil() 194,013,408 Ops/sec