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) 4812213.0 Ops/sec
Public Getter function 4809971.5 Ops/sec
Public Directly get 4843419.0 Ops/sec
Public ES6 property (set) 11361345.0 Ops/sec
Public Setter function 11327366.0 Ops/sec
Public Directly set 11264331.0 Ops/sec
Private ES6 property (get) 4806553.0 Ops/sec
Private Getter function 4822380.5 Ops/sec
Private ES6 property (set) 11339252.0 Ops/sec
Private Setter function 11312741.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


;