Script Preparation code:
AخA
 
var arr = [1,2,3,4];
Tests:
  • array length = 0

     
    arr.length = 0
  • array = []

     
    arr = []
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array length = 0
    array = []

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Linux
View result in a separate tab
Test name Executions per second
array length = 0 6039700.5 Ops/sec
array = [] 6541907.0 Ops/sec