Run details:
Mozilla/5.0 (Linux; Android 11; Mi Note 10 Lite) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.86 Mobile Safari/537.36
Chrome Mobile 89
Android
Mobile
3 years ago
Test name Executions per second
isEmpty empty array 1355027.9 Ops/sec
length empty array 3022627.0 Ops/sec
isEmpty array of strings 1336705.2 Ops/sec
length array of strings 2942518.8 Ops/sec
isEmpty array of objects 1337830.6 Ops/sec
length array of objects 2975026.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