Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/79.0.3945.79 Chrome/79.0.3945.79 Safari/537.36
Chromium 79
Ubuntu
Desktop
4 years ago
Test name Executions per second
Get generated property with eval 1992.9 Ops/sec
Get property 2146.2 Ops/sec
Get dynamic property 1795.6 Ops/sec
Get field 2164.8 Ops/sec
Nothing 6429.1 Ops/sec
Get generated property with Function ctor 1053.8 Ops/sec
Script Preparation code:
Tests:
  • Get generated property with eval

  • Get property

  • Get dynamic property

  • Get field

  • Nothing

  • Get generated property with Function ctor