Run details:
Mozilla/5.0 (Linux; Android 11; Redmi Note 9 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
ES6 property (get) 2595385.8 Ops/sec
Getter function 2616868.8 Ops/sec
Directly get 2612892.8 Ops/sec
ES6 property (set) 6253030.0 Ops/sec
Setter function 6241018.0 Ops/sec
Directly set 6274945.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;