Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123
Mac OS X 10.15
Desktop
9 months ago
Test name Executions per second
isEmpty empty array 10372214.0 Ops/sec
length empty array 14567785.0 Ops/sec
isEmpty array of strings 10143268.0 Ops/sec
length array of strings 14588644.0 Ops/sec
isEmpty array of objects 10228016.0 Ops/sec
length array of objects 14566276.0 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