Run details:
Mozilla/5.0 (Linux; Android 12; LE2101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
2 years ago
Test name Executions per second
isEmpty empty array 1961376.0 Ops/sec
length empty array 4406100.0 Ops/sec
isEmpty array of strings 2032492.6 Ops/sec
length array of strings 4355005.0 Ops/sec
isEmpty array of objects 2014139.0 Ops/sec
length array of objects 4390475.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