Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Windows
Desktop
one year ago
Test name Executions per second
isEmpty empty array 2596185.0 Ops/sec
.length empty array 3803149.0 Ops/sec
isEmpty string array 2721065.5 Ops/sec
.length string array 4813648.0 Ops/sec
isEmpty object array 2782270.8 Ops/sec
.length object array 4759796.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • isEmpty empty array

  • .length empty array

  • isEmpty string array

  • .length string array

  • isEmpty object array

  • .length object array