Test JavaScript methods against each other accurate to 5 microseconds (five thousandths of a millisecond).
time = fn=>{let t=()=>performance.now(),s=t();fn();return t()-s}
time(() => document.querySelectorAll('span'))
// 0.18499999959021807
time(() => document.getElementsByTagName('span'))
// 0.04000000050291419