All examples By author By category About

stepheneb

SVG path benchmark (2012)

SVG Path Benchmark

Note: January 7, 2020

This benchmark was written in 2012 and the performance measurements below are valid for browsers at that time. The attribute path_seglist has been removed from the SCG element on Chrome and Firefox and this older benchmark no long runs on those systems.

The benchmark does still run on Safari and now has performance equivalent to the Canvas benchmark.

This example benchmarks the time taken to draw an SVG path with 10000 line segments.

On Chrome and Safari the SVG results are about 20x slower than those measured by the equivalent Canvas Path Benchmark. On Firefox, Opera, and IE9 the results are similar.

Google Spreadsheet with results: Canvas/SVG Path Benchmarks

source: gist.github.com/gists/1296930

2012-09-25: Recent Canary version of Chrome and the Nightly version of Safari/Webkit have eliminated this slowdown. See updated results in google spreadsheet.

Related bug reports: