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 727103.2 Ops/sec
isArray if 742361.4 Ops/sec
Length if 1173845.9 Ops/sec
Length if undef 613480.5 Ops/sec
Map if 1093827.5 Ops/sec
Ctor check 646117.9 Ops/sec
Script Preparation code:
Tests:
  • Instanceof if

  • isArray if

  • Length if

  • Length if undef

  • Map if

  • Ctor check