Script Preparation code:
AخA
 
var newArr = ['1', '2', '3', '4'];
Tests:
  • Test1

     
    !!newArr.length
  • Test2

     
    Boolean(newArr.length)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Test1
    Test2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
Chrome 87 on Mac OS X 11.0.1
View result in a separate tab
Test name Executions per second
Test1 15320945.0 Ops/sec
Test2 5308478.0 Ops/sec