HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Not empty lodash.head()
    Not empty [0]
    Empty lodash.head()
    Empty [0]
    [0] with check
    [0] with null check
    [0] with optional chaining null check

    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/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
[0] with optional chaining null check
226.0M/s
Not empty [0]
217.0M/s
Empty [0]
215.2M/s
[0] with check
193.0M/s
[0] with null check
173.7M/s
Empty lodash.head()
118.2M/s
Not empty lodash.head()
115.2M/s
View exact numbers
Test name Executions per second
[0] with optional chaining null check 226,043,392 Ops/sec
Not empty [0] 216,992,864 Ops/sec
Empty [0] 215,156,256 Ops/sec
[0] with check 192,984,160 Ops/sec
[0] with null check 173,685,696 Ops/sec
Empty lodash.head() 118,182,208 Ops/sec
Not empty lodash.head() 115,241,128 Ops/sec