Script Preparation code:
Tests:
  • Math.ceil(test)

  • ~~test

  • Math.floor(test)

  • Math.floor(test) + 1 (CEIL)

  • FAST CEIL

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.ceil(test)
    ~~test
    Math.floor(test)
    Math.floor(test) + 1 (CEIL)
    FAST CEIL

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Math.ceil(test) 9427078.0 Ops/sec
~~test 24615530.0 Ops/sec
Math.floor(test) 9470258.0 Ops/sec
Math.floor(test) + 1 (CEIL) 9357318.0 Ops/sec
FAST CEIL 24715160.0 Ops/sec