Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/115.0.5790.160 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 115
iOS 16.6
Mobile
one year ago
Test name Executions per second
isEmpty empty array 7318578.5 Ops/sec
length empty array 16010817.0 Ops/sec
isEmpty array of strings 7113682.5 Ops/sec
length array of strings 16407907.0 Ops/sec
isEmpty array of objects 7234707.5 Ops/sec
length array of objects 16159073.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