Script Preparation code:
AخA
 
var ops = [true, 1, false, 3, 4, 5, true, "foobar", {}, 3, 4, 5, 6, [], false, 2, true, 2, false, 212, true, 34, 1, 1.909090090909009090909090909, undefined];
Tests:
  • null check

     
    ops.filter(op => op === null)
  • negation check

     
    ops.filter(op => !op)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    null check
    negation check

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
null check 22565376.0 Ops/sec
negation check 14641786.0 Ops/sec