Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
Instanceof 2963766.2 Ops/sec
isArray 2986964.2 Ops/sec
variable.constructor 2920720.5 Ops/sec
variable.constructor name 4232088.5 Ops/sec
Script Preparation code:
Tests:
  • Instanceof

  • isArray

  • variable.constructor

  • variable.constructor name