Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.53 Safari/537.36
Chrome 103
Linux
Desktop
2 years ago
Test name Executions per second
ES6 property (get) 3720078.8 Ops/sec
Getter function 3773589.0 Ops/sec
Directly get 3761139.2 Ops/sec
ES6 property (set) 8362982.0 Ops/sec
Setter function 8365354.5 Ops/sec
Directly set 8371927.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;