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
11 months ago
Test name Executions per second
ES6 property (get) 742298800.0 Ops/sec
Getter function 752259300.0 Ops/sec
Directly get 753527700.0 Ops/sec
ES6 property (set) 745021600.0 Ops/sec
Setter function 742616400.0 Ops/sec
Directly set 744653100.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set