Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3964.0 Safari/537.36
Chrome 80
Windows
Desktop
5 years ago
Test name Executions per second
inline getElementById 1432.3 Ops/sec
fnArrowLightest 1944.2 Ops/sec
fnArrowLight 1873.8 Ops/sec
fnArrowFat 1907.1 Ops/sec
fnArrowFatter 1890.1 Ops/sec
fnExpression 1840.8 Ops/sec
fnExpressionNamed 1863.6 Ops/sec
fnDeclaration 1643.5 Ops/sec
inline getElementById (2nd time, control for test #1 , no penalty for going first) 1383.5 Ops/sec
HTML Preparation code:
Tests:
  • inline getElementById

  • fnArrowLightest

  • fnArrowLight

  • fnArrowFat

  • fnArrowFatter

  • fnExpression

  • fnExpressionNamed

  • fnDeclaration

  • inline getElementById (2nd time, control for test #1 , no penalty for going first)