Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
9 months ago
Test name Executions per second
Public ES6 property (get) 4787858.5 Ops/sec
Public Getter function 4814363.5 Ops/sec
Public Directly get 4839253.0 Ops/sec
Public ES6 property (set) 11259034.0 Ops/sec
Public Setter function 11306946.0 Ops/sec
Public Directly set 11349275.0 Ops/sec
Private ES6 property (get) 4825545.5 Ops/sec
Private Getter function 4825800.5 Ops/sec
Private ES6 property (set) 11284329.0 Ops/sec
Private Setter function 11349686.0 Ops/sec
Script Preparation code:
Tests:
  • Public ES6 property (get)

  • Public Getter function

  • Public Directly get

  • Public ES6 property (set)

  • Public Setter function

  • Public Directly set

  • Private ES6 property (get)

  • Private Getter function

  • Private ES6 property (set)

  • Private Setter function


;