Here is an example of drawing 20000 lines with svg vs canvas

SVG

Canvas