Waiting for the first run…
Total = DOM + CSS insertion, forced style + layout, and the rendering work of the next frame (median).
DOM + CSS insertStyle + layoutPaint frame
Renders the same icons four ways in your browser and times DOM insertion, style + layout, first paint and a re-layout. Every round shuffles the order; the first round is a discarded warm-up.
Total = DOM + CSS insertion, forced style + layout, and the rendering work of the next frame (median).
Median total time at 250 to 10,000 icons, using the settings above (half the rounds per step).
<svg><path d="…"/></svg> per icon, stroked with currentColor.<svg><use href="#icon"/></svg> pointing at a sprite of symbols already in the page.<i> with background-image: url("data:image/svg+xml,…"). Colour is baked into the SVG.mask-image over background-color: currentColor, so the icon can still be recoloured with CSS.innerHTML (HTML parsing, node creation). String building is excluded.offsetHeight.requestAnimationFrame to a MessageChannel task after it: the frame's rendering work, without the wait for vsync.