Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
Chrome 73
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
typeof a.1 14280546.0 Ops/sec
typeof b.1 14202219.0 Ops/sec
typeof a.2 14350360.0 Ops/sec
typeof b.2 14275526.0 Ops/sec
typeof a.3 14142415.0 Ops/sec
typeof b.3 13820524.0 Ops/sec
Script Preparation code:
Tests:
  • typeof a.1

  • typeof b.1

  • typeof a.2

  • typeof b.2

  • typeof a.3

  • typeof b.3