Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/114.0
Firefox 114
Ubuntu
Desktop
one year ago
Test name Executions per second
ES6 property (get) 498467616.0 Ops/sec
Getter function 494414944.0 Ops/sec
Directly get 495188512.0 Ops/sec
ES6 property (set) 707943104.0 Ops/sec
Setter function 707872704.0 Ops/sec
Directly set 703291968.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;