Run details:
Mozilla/5.0 (Linux; Android 12; DE2118) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
Instanceof if 727988.6 Ops/sec
Instanceof npe 466704.2 Ops/sec
Instanceof mpe 712120.8 Ops/sec
isArray if 670750.4 Ops/sec
isArray npe 545159.4 Ops/sec
isArray mpe 613199.4 Ops/sec
Length if 1166748.8 Ops/sec
Length npe 730092.0 Ops/sec
Length mpe 1191733.0 Ops/sec
Script Preparation code:
Tests:
  • Instanceof if

  • Instanceof npe

  • Instanceof mpe

  • isArray if

  • isArray npe

  • isArray mpe

  • Length if

  • Length npe

  • Length mpe


;