CSS4J
SVG mark

SVG benchmarks

Overview

Measures the speed at which SVG documents are transcoded or generated using EchoSVG or Apache Batik.

The computer has an Intel® Core™ i5-1035G7 CPU and 8GB of RAM.

Issue 91

Measures the speed at which the 'Issue 91' document is transcoded to PNG.

The results come from Issue91Mark.

Issue 91 Issue 91 Medium-sized file (596 kB) EchoSVG Batik 1 1 0 0 0 0 Throughput (ops/s) SVG Implementation

Numeric results (higher is better):

ImplementationScoreErrorUnit
EchoSVG0.55409±0.00991ops/s
Batik0.67572±0.00819ops/s

Pooh 3 (13 kB)

Measures the speed at which the 'Pooh 3' document is transcoded to PNG.

The results come from Pooh3Mark.

Pooh 3 Pooh 3 Small-sized file (61 kB) with paths EchoSVG Batik 9 8 6 4 2 0 Throughput (ops/s) SVG Implementation

Numeric results (higher is better):

ImplementationScoreErrorUnit
EchoSVG7.6096±1.6209ops/s
Batik2.7154±0.0197ops/s

Multiple <use> (4.5 kB)

Measures the speed at which the 'UseMultiple' document is transcoded to PNG.

The results come from UseMultipleMark.

Multiple <use> Multiple <use> Very small file (4.5 kB) EchoSVG Batik 2 1 1 1 0 0 Throughput (ops/s) SVG Implementation

Numeric results (higher is better):

ImplementationScoreErrorUnit
EchoSVG1.49448±0.00945ops/s
Batik1.60155±0.00678ops/s

The polygons in this benchmark are somewhat small and simple. A document that used very large paths multiple times would probably give advantage to EchoSVG, as it does not need to reparse the same path for every <use> element, unlike Batik. This may be the subject of a future benchmark.

SVGGraphics2D

Measures the speed at which SVG is generated.

The results come from SVGGraphics2DMark.

Graphics2D benchmark Graphics2D benchmark Font decorations supported only by EchoSVG EchoSVG Batik 186 149 112 74 37 0 Throughput (ops/s) SVG generator

Numeric results (higher is better):

ImplementationScoreErrorUnit
EchoSVG174.85±2.24ops/s
Batik180.39±3.55ops/s

Analysis

EchoSVG has far more features than Apache Batik, and therefore is expected to be a bit slower in general. However, thanks to several speed improvements it can outperform Batik.

The SVGGraphics2D benchmark is not fair because Batik does not support the font attributes that are used in the benchmark but still gives an idea.