Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
ES6 property (get) 742298752.0 Ops/sec
Getter function 752259264.0 Ops/sec
Directly get 753527680.0 Ops/sec
ES6 property (set) 745021568.0 Ops/sec
Setter function 742616384.0 Ops/sec
Directly set 744653056.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;