Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
isEmpty empty array 6476944.0 Ops/sec
length empty array 14420321.0 Ops/sec
isEmpty array of strings 6379238.0 Ops/sec
length array of strings 12825607.0 Ops/sec
isEmpty array of objects 6440861.0 Ops/sec
length array of objects 12573887.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