Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0
Firefox 58
Ubuntu
Other
2025 years ago
Test name Executions per second
2 - function 853.0 Ops/sec
3 - method 1307.5 Ops/sec
4 - closure function 894.3 Ops/sec
5 - es-5 setter 1260.7 Ops/sec
1 - direct access 1329.3 Ops/sec
Script Preparation code:
Tests:
  • 2 - function

  • 3 - method

  • 4 - closure function

  • 5 - es-5 setter

  • 1 - direct access


;