Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:101.0) Gecko/20100101 Firefox/101.0
Firefox 101
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
isEmpty empty array 5525660.5 Ops/sec
length empty array 7977791.5 Ops/sec
isEmpty array of strings 5180215.5 Ops/sec
length array of strings 7605607.5 Ops/sec
isEmpty array of objects 5360140.5 Ops/sec
length array of objects 7780817.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