Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Ubuntu
Desktop
one year ago
Test name Executions per second
ES6 property (get) 398046976.0 Ops/sec
Getter function 392111904.0 Ops/sec
Directly get 385953088.0 Ops/sec
ES6 property (set) 631559360.0 Ops/sec
Setter function 627654016.0 Ops/sec
Directly set 651360832.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;