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 733466.9 Ops/sec
isArray if 610558.0 Ops/sec
Length if 1134437.1 Ops/sec
Length if undef 617303.2 Ops/sec
Map if 1067039.1 Ops/sec
Ctor check 644249.6 Ops/sec
Script Preparation code:
Tests:
  • Instanceof if

  • isArray if

  • Length if

  • Length if undef

  • Map if

  • Ctor check