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 718751.7 Ops/sec
isArray if 610666.6 Ops/sec
Length if 1144864.0 Ops/sec
Length if undef 628375.5 Ops/sec
Map if 1075767.4 Ops/sec
Ctor check 663058.0 Ops/sec
Script Preparation code:
Tests:
  • Instanceof if

  • isArray if

  • Length if

  • Length if undef

  • Map if

  • Ctor check