Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:127.0) Gecko/20100101 Firefox/127.0
Firefox 127
Mac OS X 10.15
Desktop
3 months ago
Test name Executions per second
isEmpty empty array 10600688.0 Ops/sec
length empty array 14735437.0 Ops/sec
isEmpty array of strings 10854255.0 Ops/sec
length array of strings 14392793.0 Ops/sec
isEmpty array of objects 10799799.0 Ops/sec
length array of objects 14728767.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