Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 10.11.6
Desktop
4 years ago
Test name Executions per second
Instanceof 1193478.2 Ops/sec
isArray 1178566.0 Ops/sec
variable.constructor 1192510.8 Ops/sec
variable.constructor name 1654487.2 Ops/sec
Script Preparation code:
Tests:
  • Instanceof

  • isArray

  • variable.constructor

  • variable.constructor name