Run details:
Mozilla/5.0 (Android 13; Mobile; rv:125.0) Gecko/125.0 Firefox/125.0
Firefox Mobile 125
Android
Mobile
10 months ago
Test name Executions per second
Public ES6 property (get) 284940160.0 Ops/sec
Public Getter function 284395328.0 Ops/sec
Public Directly get 284728064.0 Ops/sec
Public ES6 property (set) 432408704.0 Ops/sec
Public Setter function 420305984.0 Ops/sec
Public Directly set 425870592.0 Ops/sec
Private ES6 property (get) 286731648.0 Ops/sec
Private Getter function 286688832.0 Ops/sec
Private ES6 property (set) 379407552.0 Ops/sec
Private Setter function 378295840.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