Run details:
Mozilla/5.0 (Linux; Android 10; Redmi 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 806743.9 Ops/sec
Getter function 804897.2 Ops/sec
Directly get 810645.6 Ops/sec
ES6 property (set) 1815334.0 Ops/sec
Setter function 1797937.5 Ops/sec
Directly set 1793794.8 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set