addEventListener('resize') + innerWidth VS matchMedia() + matchMedia.addEventListener('change') (version: 0)
This benchmark compares using `addEventListener('resize')` with window.innerWidth versus window.matchMedia with it's`addEventListener()` function to see which is faster.
Comparing performance of: matchMedia + addListener vs resize + innerWidth
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