Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
Chrome 96
Mac OS X 10.14.5
Desktop
3 years ago
Test name Executions per second
isEmpty empty array 1993454.5 Ops/sec
length empty array 4936188.5 Ops/sec
isEmpty array of strings 2025994.6 Ops/sec
length array of strings 5029971.5 Ops/sec
isEmpty array of objects 2031748.0 Ops/sec
length array of objects 5019997.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