Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.0.2
Mobile
one year ago
Test name Executions per second
ES6 property (get) 12655624.0 Ops/sec
Getter function 11912085.0 Ops/sec
Directly get 11514580.0 Ops/sec
ES6 property (set) 25136424.0 Ops/sec
Setter function 24179826.0 Ops/sec
Directly set 24076500.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;