Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.4.1
Mobile
6 months ago
Test name Executions per second
ES6 property (get) 5464465.5 Ops/sec
Getter function 5283591.0 Ops/sec
Directly get 5530125.5 Ops/sec
ES6 property (set) 13348284.0 Ops/sec
Setter function 13502724.0 Ops/sec
Directly set 13467989.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;