Run details:
Mozilla/5.0 (Linux; Android 11; Armor X5 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 737619.6 Ops/sec
Getter function 745942.8 Ops/sec
Directly get 744440.4 Ops/sec
ES6 property (set) 1689178.8 Ops/sec
Setter function 1670151.4 Ops/sec
Directly set 1682686.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set