Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Double negation (!!row.length)
    Comparison (row.length > 0)
    Double negation (!!row)
    Boolean constructor

    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
Double negation (!!row.length)
153K/s
Comparison (row.length > 0)
151K/s
Boolean constructor
125K/s
Double negation (!!row)
115K/s
View exact numbers
Test name Executions per second
Double negation (!!row.length) 153,157 Ops/sec
Comparison (row.length > 0) 150,694 Ops/sec
Boolean constructor 124,618 Ops/sec
Double negation (!!row) 115,213 Ops/sec