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) 1056903.4 Ops/sec
Getter function 1116535.4 Ops/sec
Directly get 1129302.4 Ops/sec
ES6 property (set) 2566093.0 Ops/sec
Setter function 2544612.8 Ops/sec
Directly set 2520396.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set