Run details:
Mozilla/5.0 (Android 13; Mobile; rv:125.0) Gecko/125.0 Firefox/125.0
Firefox Mobile 125
Android
Mobile
9 months ago
Test name Executions per second
Public - ES6 property (get) 291584288.0 Ops/sec
Public - Getter function 286199872.0 Ops/sec
Public - Directly get 288003360.0 Ops/sec
Public - ES6 property (set) 392043584.0 Ops/sec
Public - Setter function 429920352.0 Ops/sec
Public - Directly set 385584928.0 Ops/sec
Private - ES6 property (get) 252833040.0 Ops/sec
Private - Getter function 284939744.0 Ops/sec
Private - ES6 property (set) 384881088.0 Ops/sec
Private - Setter function 378597056.0 Ops/sec
Closure - Getter function 574459392.0 Ops/sec
Closure - Setter function 322674496.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

  • Closure - Getter function

  • Closure - Setter function


;