Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Mobile Safari/537.36
Chrome Mobile 121
Android
Mobile
9 months ago
Test name Executions per second
Public ES6 property (get) 3768411.0 Ops/sec
Public Getter function 3995178.5 Ops/sec
Public Directly get 4008489.5 Ops/sec
Public ES6 property (set) 8391418.0 Ops/sec
Public Setter function 8451151.0 Ops/sec
Public Directly set 8396461.0 Ops/sec
Private ES6 property (get) 3341552.8 Ops/sec
Private Getter function 3940856.5 Ops/sec
Private ES6 property (set) 8311182.0 Ops/sec
Private Setter function 8324166.5 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


;