Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:89.0) Gecko/20100101 Firefox/89.0
Firefox 89
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
isEmpty empty array 4690751.0 Ops/sec
length empty array 7735046.5 Ops/sec
isEmpty array of strings 4690513.0 Ops/sec
length array of strings 7682634.5 Ops/sec
isEmpty array of objects 4541224.0 Ops/sec
length array of objects 7729973.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • isEmpty empty array

  • length empty array

  • isEmpty array of strings

  • length array of strings

  • isEmpty array of objects

  • length array of objects