Run details:
Mozilla/5.0 (Linux; Android 10; YAL-L41) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
4 months ago
Test name Executions per second
ES6 property (get) 3408498.0 Ops/sec
Getter function 3350217.0 Ops/sec
Directly get 3375595.0 Ops/sec
ES6 property (set) 7781097.0 Ops/sec
Setter function 7769047.0 Ops/sec
Directly set 7783858.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set