Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.87 Safari/537.36
Chrome 78
Windows
Desktop
5 years ago
Test name Executions per second
inline getElementById 1699.9 Ops/sec
fnArrowLightest 2246.9 Ops/sec
fnArrowLight 2270.1 Ops/sec
fnArrowFat 2269.1 Ops/sec
fnArrowFatter 2187.9 Ops/sec
fnExpression 2203.3 Ops/sec
fnExpressionNamed 2014.2 Ops/sec
fnDeclaration 1866.3 Ops/sec
inline getElementById (2nd time, control for test #1 , no penalty for going first) 1636.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)