Run details:
Mozilla/5.0 (Linux; Android 11; Armor X5 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 743583.8 Ops/sec
Getter function 740121.2 Ops/sec
Directly get 749496.4 Ops/sec
ES6 property (set) 1692863.1 Ops/sec
Setter function 1698417.2 Ops/sec
Directly set 1694992.1 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;