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
10 months ago
Test name Executions per second
Public ES6 property (get) 3976102.8 Ops/sec
Public Getter function 3502211.2 Ops/sec
Public ES6 property (set) 8412530.0 Ops/sec
Public Setter function 8448258.0 Ops/sec
Private ES6 property (get) 3996578.2 Ops/sec
Private Getter function 3518101.2 Ops/sec
Private ES6 property (set) 8281598.5 Ops/sec
Private Setter function 8368438.5 Ops/sec
Null Prototype Directly Set 6835935.5 Ops/sec
Null Prototype Directly Get 3768957.5 Ops/sec
Frozen Object Literal (Get) 3434296.5 Ops/sec
Frozen Object Literal (Set) 1172441.4 Ops/sec
Frozen Object Literal Getter Function 3628792.5 Ops/sec
Frozen Object Literal Setter Function; 699181.3 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;