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) 735008.6 Ops/sec
Getter function 738507.5 Ops/sec
Directly get 735159.9 Ops/sec
ES6 property (set) 1675029.1 Ops/sec
Setter function 1499039.1 Ops/sec
Directly set 1615191.2 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;