8x addEventListener('resize') VS matchMedia() (version: 0)
This benchmark compares using `addEventListener('resize')` with window.innerWidth VERSUS window.matchMedia with its `addListener()` function to see which is faster, when checking multiple conditions (8 different sizes, in this case).
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