Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/51.0.2704.79 Chrome/51.0.2704.79 Safari/537.36
Chromium 51
Ubuntu
Other
8 years ago
Test name Executions per second
getElementById each time 89.7 Ops/sec
Own global variable 177.5 Ops/sec
Own global variable with equal name 179.6 Ops/sec
HTML5 global variable based on id value 30.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById each time

  • Own global variable

  • Own global variable with equal name

  • HTML5 global variable based on id value


;