Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
5 months ago
Test name Executions per second
Get generated property with eval 1299.0 Ops/sec
Get property 1330.4 Ops/sec
Get dynamic property 1237.6 Ops/sec
Get field 1388.2 Ops/sec
Nothing 4601.1 Ops/sec
Get generated property with Function ctor 753.3 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