Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
constructor comparison 1305382.5 Ops/sec
instanceof operator 1275395.0 Ops/sec
Array.isArray call 1262115.4 Ops/sec
Script Preparation code:
Tests:
  • constructor comparison

  • instanceof operator

  • Array.isArray call