Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3777.0 Safari/537.36
Chrome 76
Windows
Desktop
5 years ago
Test name Executions per second
inline getElementById 1637.0 Ops/sec
fnArrowLightest 2108.3 Ops/sec
fnArrowLight 2094.9 Ops/sec
fnArrowFat 2057.3 Ops/sec
fnArrowFatter 2071.5 Ops/sec
fnExpression 2071.7 Ops/sec
fnExpressionNamed 2073.8 Ops/sec
fnDeclaration 1762.3 Ops/sec
inline getElementById (2nd time, control for test #1 , no penalty for going first) 1663.1 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)