Run details:
Mozilla/5.0 (Linux; Android 12; Pixel 4a) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 2286053.2 Ops/sec
Getter function 2283967.0 Ops/sec
Directly get 2283978.8 Ops/sec
ES6 property (set) 5747757.5 Ops/sec
Setter function 5759548.0 Ops/sec
Directly set 5718614.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;