Comparing performance of: getElementById each time vs Own global variable vs Own global variable with equal name vs HTML5 global variable based on id value
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory
Test case name
Result
getElementById each time
Own global variable
Own global variable with equal name
HTML5 global variable based on id value
Fastest:N/A
Slowest:N/A
ⓘGet performance results from real users on your website with Request Metrics.
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one to run it!