SVG benchmarks
Overview
Measures the speed at which SVG documents are transcoded or generated using EchoSVG or Apache Batik.
- Operating system: Windows 11 25H2.
- Java: Adoptium's Temurin OpenJDK 21.
- JMH: 1.37.
- EchoSVG: 2.2.
- Apache Batik: 1.19.
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.
Numeric results (higher is better):
Implementation | Score | Error | Unit |
---|---|---|---|
EchoSVG | 0.55409 | ±0.00991 | ops/s |
Batik | 0.67572 | ±0.00819 | ops/s |
Pooh 3 (13 kB)
Measures the speed at which the 'Pooh 3' document is transcoded to PNG.
The results come from Pooh3Mark.
Numeric results (higher is better):
Implementation | Score | Error | Unit |
---|---|---|---|
EchoSVG | 7.6096 | ±1.6209 | ops/s |
Batik | 2.7154 | ±0.0197 | ops/s |
Multiple <use>
(4.5 kB)
Measures the speed at which the 'UseMultiple' document is transcoded to PNG.
The results come from UseMultipleMark.
Numeric results (higher is better):
Implementation | Score | Error | Unit |
---|---|---|---|
EchoSVG | 1.49448 | ±0.00945 | ops/s |
Batik | 1.60155 | ±0.00678 | ops/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.
Numeric results (higher is better):
Implementation | Score | Error | Unit |
---|---|---|---|
EchoSVG | 174.85 | ±2.24 | ops/s |
Batik | 180.39 | ±3.55 | ops/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.