Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0
Firefox 48
Ubuntu
Other
8 years ago
Test name Executions per second
getElementById each time 17.6 Ops/sec
Own global variable 27.5 Ops/sec
Own global variable with equal name 26.5 Ops/sec
HTML5 global variable based on id value 11.0 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


;