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) 4814027.0 Ops/sec
Public Getter function 4825748.5 Ops/sec
Public ES6 property (set) 11363714.0 Ops/sec
Public Setter function 11406515.0 Ops/sec
Private ES6 property (get) 4819903.5 Ops/sec
Private Getter function 4835212.0 Ops/sec
Private ES6 property (set) 11260679.0 Ops/sec
Private Setter function 11279398.0 Ops/sec
Null Prototype Directly Set 10523267.0 Ops/sec
Null Prototype Directly Get 4690172.5 Ops/sec
Frozen Object Literal (Get) 4342103.0 Ops/sec
Frozen Object Literal (Set) 1503870.9 Ops/sec
Frozen Object Literal Getter Function 4502484.0 Ops/sec
Frozen Object Literal Setter Function; 862340.7 Ops/sec
Script Preparation code:
Tests:
  • Public ES6 property (get)

  • Public Getter function

  • Public ES6 property (set)

  • Public Setter function

  • Private ES6 property (get)

  • Private Getter function

  • Private ES6 property (set)

  • Private Setter function

  • Null Prototype Directly Set

  • Null Prototype Directly Get

  • Frozen Object Literal (Get)

  • Frozen Object Literal (Set)

  • Frozen Object Literal Getter Function

  • Frozen Object Literal Setter Function;


;