Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Mobile Safari/537.36
Chrome Mobile 115
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 500037.8 Ops/sec
Getter function 510760.5 Ops/sec
Directly get 518113.3 Ops/sec
ES6 property (set) 1167316.8 Ops/sec
Setter function 1187931.6 Ops/sec
Directly set 1163190.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set