Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36
Chrome Mobile 114
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 1945490.9 Ops/sec
Getter function 1944602.8 Ops/sec
Directly get 1939067.6 Ops/sec
ES6 property (set) 4555480.5 Ops/sec
Setter function 4529866.5 Ops/sec
Directly set 4601522.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;