Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:90.0) Gecko/20100101 Firefox/90.0
Firefox 90
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
isEmpty empty array 4191927.8 Ops/sec
length empty array 6564072.0 Ops/sec
isEmpty array of strings 4118371.2 Ops/sec
length array of strings 6607431.5 Ops/sec
isEmpty array of objects 4288870.5 Ops/sec
length array of objects 7205976.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