Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105
Linux
Desktop
2 years ago
Test name Executions per second
ES6 property (get) 603152128.0 Ops/sec
Getter function 558271040.0 Ops/sec
Directly get 628877952.0 Ops/sec
ES6 property (set) 812938304.0 Ops/sec
Setter function 819369728.0 Ops/sec
Directly set 827022080.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;