easwee.net // tiny digital playground

rendering 10.000 svg icons

a quick performance test on what is the best approach to render 10.000 SVG icons.

tests were done in Chrome version 79.0.3945.117 (Official Build) (64-bit) running on ThinkPad x270 16GB RAM.

same tests done in Firefox actually render SVGs much faster – so Firefox seems to have a better handler for SVG rendering.

test files are linked for each test so you can try them on your own machine.

1.) all inline – AWFUL performance (Inline test file)

Svg test 1 results

2.) inline using symbol – BEST when you don’t want extra requests (Inline with 1 symbol | Inline with multiple symbols)

Svg test 1 results

3.) external – ABSOLUTE FASTEST to render but makes extra request for each file so that may slow it down when many icons are used (External with 1 svg | External with multiple SVGs)

Svg test 1 results

4.) external using symbol – SLOWER than #2 and #3 (External with symbol test file)

Svg test 1 results