Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:50.0) Gecko/20100101 Firefox/50.0
Firefox 50
Windows 7
Other
7 years ago
Test name Executions per second
access property with prototype 1233041.0 Ops/sec
access property without prototype 1430684.0 Ops/sec
in with prototype 1104603.0 Ops/sec
in without prototype 1522130.0 Ops/sec
hasOwnProperty with prototype 248467.3 Ops/sec
hasOwnProperty without prototype 195328.2 Ops/sec
Script Preparation code:
Tests:
  • access property with prototype

  • access property without prototype

  • in with prototype

  • in without prototype

  • hasOwnProperty with prototype

  • hasOwnProperty without prototype