Run details:
Mozilla/5.0 (Linux; Android 10; CLT-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/46.01.4.5140
Chrome Mobile 77
Android
Mobile
3 years ago
Test name Executions per second
ES6 property (get) 1878595.0 Ops/sec
Getter function 1704187.0 Ops/sec
Directly get 1817965.0 Ops/sec
ES6 property (set) 4324453.0 Ops/sec
Setter function 4875946.0 Ops/sec
Directly set 4997062.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set