Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129
Ubuntu
Desktop
2 months ago
Test name Executions per second
ES6 property (get) 409875360.0 Ops/sec
Getter function 468817856.0 Ops/sec
Directly get 362865760.0 Ops/sec
ES6 property (set) 655299520.0 Ops/sec
Setter function 603097984.0 Ops/sec
Directly set 570554112.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;