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
one year ago
Test name Executions per second
Instanceof if 729172.6 Ops/sec
isArray if 736232.3 Ops/sec
Length if 982789.4 Ops/sec
Length if undef 701748.8 Ops/sec
Map if 1008942.0 Ops/sec
Ctor check 674021.0 Ops/sec
Script Preparation code:
Tests:
  • Instanceof if

  • isArray if

  • Length if

  • Length if undef

  • Map if

  • Ctor check