Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.0.0 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 1156779.8 Ops/sec
Getter function 1158964.8 Ops/sec
Directly get 1158304.6 Ops/sec
ES6 property (set) 2563204.8 Ops/sec
Setter function 2556339.0 Ops/sec
Directly set 2562126.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set