The efficiency is directly proportional to the number of calls to the global scope.
Comparing speed of getting element by id with jQuery vs Vanilla JS
test
Compare the new ES6 spread operator with the traditional concat() method and push
New benchmark Your benchmarks
Source code: GitHub/MeasureThat.net
Report issues: MeasureThat.net/Issues
Based on: Benchmark.js (v2.1.1)
Facebook page: https://www.facebook.com/MeasureThat.Net