Skip to content

Benchmarks

Compare the compilation and conversion times, as well as the size of the output, for different kinds of content and supported LaTeX engines and converters.

Legends:

  • Compilation:
    • Engine: The LaTeX engine used for compilation. Note: {pdf,Lua,Xe}LaTeXmk refer to LaTeXmk with the respective engine.
    • Fmt.: The output format of the compilation.
    • Avg.: The average time taken for compilation, in milliseconds.
    • σ: The standard deviation of the compilation times, in milliseconds.
    • Min.: The minimum time taken for compilation, in milliseconds.
    • Max.: The maximum time taken for compilation, in milliseconds.
  • Conversion:
    • Converter: The tool used for conversion.
    • Fmt.: The format of the input file provided to the converter.
    • Engine: The LaTeX engine that was used to generate the input file provided to the converter.
    • Avg.: The average time taken for conversion, in milliseconds.
    • σ: The standard deviation of the conversion times, in milliseconds.
    • Size: The size of the output file generated by the converter, in bytes.
    • Size (opt.): The size of the optimized output file generated by the converter, in bytes.

Gradient

gradient.tex
latex
\documentclass[dvisvgm]{standalone}
\usepackage{tikz}
\usepgflibrary{shadings}

\begin{document}
\begin{tikzpicture}
\fill [ left color = red, right color = blue ] (0,0) rectangle (2,2);
\fill [ left color = blue, right color = green ] (2,0) rectangle (4,2);
\fill [ left color = green, right color = red ] (4,0) rectangle (6,2);
\end{tikzpicture}
\end{document}
latex
\documentclass{standalone}
\usepackage{tikz}
\usepgflibrary{shadings}

\begin{document}
\begin{tikzpicture}
\fill [ left color = red, right color = blue ] (0,0) rectangle (2,2);
\fill [ left color = blue, right color = green ] (2,0) rectangle (4,2);
\fill [ left color = green, right color = red ] (4,0) rectangle (6,2);
\end{tikzpicture}
\end{document}
gradient.svg
SVG output generated from gradient.dvi with dvisvgm.
The gradient.dvi file was generated from gradient.tex via pdfLaTeX.
Compilation
EngineFmt.Avg.σMin.Max.
LuaLaTeXmkPDF1,534691,4591,699
LuaLaTeXmkDVI1,517201,4881,549
XeLaTeXmkPDF1,366491,3041,442
XeLaTeXmkXDV74614733775
pdfLaTeXmkPDF80248744877
pdfLaTeXmkDVI77136731853
LuaLaTeXPDF1,222471,1821,312
LuaLaTeXDVI1,232271,1771,264
pdfLaTeXPDF54832524607
pdfLaTeXDVI54721520581
XeLaTeXPDF1,129371,0871,204
XeLaTeXXDV5877578595
Conversion
ConverterFmt.EngineAvg.σSizeSize (opt.)
dvisvgmDVILuaLaTeXmk319142,8552,028
dvisvgmXDVXeLaTeXmk387122,8552,028
dvisvgmDVIpdfLaTeXmk38572,8552,028
dvisvgmDVILuaLaTeX31252,8552,028
dvisvgmDVIpdfLaTeX387102,8552,028
dvisvgmXDVXeLaTeX33862,8552,028
dvisvgmPDFLuaLaTeXmk1144504247
dvisvgmPDFXeLaTeXmk12282,8552,028
dvisvgmPDFpdfLaTeXmk1123504247
dvisvgmPDFLuaLaTeX1159504247
dvisvgmPDFpdfLaTeX1102504247
dvisvgmPDFXeLaTeX11622,8552,028
pdftocairoPDFLuaLaTeXmk30170,20033,629
pdftocairoPDFXeLaTeXmk30170,35433,654
pdftocairoPDFpdfLaTeXmk30170,20033,629
pdftocairoPDFLuaLaTeX31470,20033,629
pdftocairoPDFpdfLaTeX30170,20033,629
pdftocairoPDFXeLaTeX31170,35433,654

Plot

plot.tex
latex
\documentclass[dvisvgm]{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}

\begin{document}
\begin{tikzpicture}
\tikzdatavisualizationset {
  example visualization/.style={
    scientific axes=clean,
    y axis={ticks={style={
          /pgf/number format/fixed,
          /pgf/number format/fixed zerofill,
          /pgf/number format/precision=2}}},
    x axis={ticks={tick suffix=${}^\circ$}},
    1={label in legend={text=$\frac{1}{6}\sin 11x$}},
    2={label in legend={text=$\frac{1}{7}\sin 12x$}},
    3={label in legend={text=$\frac{1}{8}\sin 13x$}},
    4={label in legend={text=$\frac{1}{9}\sin 14x$}},
    5={label in legend={text=$\frac{1}{10}\sin 15x$}},
    6={label in legend={text=$\frac{1}{11}\sin 16x$}},
    7={label in legend={text=$\frac{1}{12}\sin 17x$}},
    8={label in legend={text=$\frac{1}{13}\sin 18x$}}
  }
}
\tikz \datavisualization data group {sin functions} = {
  data [format=function] {
    var set : {1,...,8};
    var x : interval [0:50];
    func y = sin(\value x * (\value{set}+10))/(\value{set}+5);
  }
};
\datavisualization [
  visualize as smooth line/.list=
{1,2,3,4,5,6,7,8},
  example visualization,
  style sheet=strong colors,
  style sheet=vary dashing]
data group {sin functions};
\end{tikzpicture}
\end{document}
latex
\documentclass{standalone}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{datavisualization.formats.functions}

\begin{document}
\begin{tikzpicture}
\tikzdatavisualizationset {
  example visualization/.style={
    scientific axes=clean,
    y axis={ticks={style={
          /pgf/number format/fixed,
          /pgf/number format/fixed zerofill,
          /pgf/number format/precision=2}}},
    x axis={ticks={tick suffix=${}^\circ$}},
    1={label in legend={text=$\frac{1}{6}\sin 11x$}},
    2={label in legend={text=$\frac{1}{7}\sin 12x$}},
    3={label in legend={text=$\frac{1}{8}\sin 13x$}},
    4={label in legend={text=$\frac{1}{9}\sin 14x$}},
    5={label in legend={text=$\frac{1}{10}\sin 15x$}},
    6={label in legend={text=$\frac{1}{11}\sin 16x$}},
    7={label in legend={text=$\frac{1}{12}\sin 17x$}},
    8={label in legend={text=$\frac{1}{13}\sin 18x$}}
  }
}
\tikz \datavisualization data group {sin functions} = {
  data [format=function] {
    var set : {1,...,8};
    var x : interval [0:50];
    func y = sin(\value x * (\value{set}+10))/(\value{set}+5);
  }
};
\datavisualization [
  visualize as smooth line/.list=
{1,2,3,4,5,6,7,8},
  example visualization,
  style sheet=strong colors,
  style sheet=vary dashing]
data group {sin functions};
\end{tikzpicture}
\end{document}
plot.svg
010203040500.150.100.050.000.050.100.1516sin11x17sin12x18sin13x19sin14x110sin15x111sin16x112sin17x113sin18x
SVG output generated from plot.dvi with dvisvgm.
The plot.dvi file was generated from plot.tex via pdfLaTeX.
Compilation
EngineFmt.Avg.σMin.Max.
LuaLaTeXmkPDF2,478512,4192,580
LuaLaTeXmkDVI2,437382,3722,521
XeLaTeXmkPDF2,084222,0432,113
XeLaTeXmkXDV1,465131,4481,493
pdfLaTeXmkPDF1,838551,7721,940
pdfLaTeXmkDVI1,543381,5021,612
LuaLaTeXPDF2,179202,1492,219
LuaLaTeXDVI2,111262,0772,156
pdfLaTeXPDF1,604331,5351,648
pdfLaTeXDVI1,298191,2651,321
XeLaTeXPDF1,915661,8412,033
XeLaTeXXDV1,421611,3331,538
Conversion
ConverterFmt.EngineAvg.σSizeSize (opt.)
dvisvgmDVILuaLaTeXmk4731643,66028,667
dvisvgmXDVXeLaTeXmk5141544,13228,742
dvisvgmDVIpdfLaTeXmk5191344,15228,762
dvisvgmDVILuaLaTeX436543,68028,687
dvisvgmDVIpdfLaTeX5241144,15628,766
dvisvgmXDVXeLaTeX442543,68428,691
dvisvgmPDFLuaLaTeXmk206837,08828,561
dvisvgmPDFXeLaTeXmk2245144,13228,742
dvisvgmPDFpdfLaTeXmk2101537,10428,498
dvisvgmPDFLuaLaTeX206437,10428,577
dvisvgmPDFpdfLaTeX207237,10428,498
dvisvgmPDFXeLaTeX2082043,68428,691
pdftocairoPDFLuaLaTeXmk36162,87628,855
pdftocairoPDFXeLaTeXmk34162,82128,932
pdftocairoPDFpdfLaTeXmk36162,88328,849
pdftocairoPDFLuaLaTeX36162,87628,855
pdftocairoPDFpdfLaTeX36162,88328,849
pdftocairoPDFXeLaTeX34162,82128,932

Text

text.tex
latex
\documentclass[dvisvgm]{standalone}
\usepackage{lipsum}

\begin{document}
\begin{minipage}{10cm}
\lipsum[1]
\end{minipage}
\end{document}
latex
\documentclass{standalone}
\usepackage{lipsum}

\begin{document}
\begin{minipage}{10cm}
\lipsum[1]
\end{minipage}
\end{document}
text.svg
Loremipsumdolorsitamet,consectetueradipiscingelit.Utpuruselit,vestibulumut,placeratac,adipiscingvitae,felis.Curabiturdictumgravidamauris.Namarculibero,nonummyeget,consec-tetuerid,vulputatea,magna.Donecvehiculaaugueeuneque.Pellentesquehabitantmorbitristiquesenectusetnetusetmale-suadafamesacturpisegestas.Maurisutleo.Crasviverrametusrhoncussem.Nullaetlectusvestibulumurnafringillaultrices.Phaselluseutellussitamettortorgravidaplacerat.Integersa-pienest,iaculisin,pretiumquis,viverraac,nunc.Praesentegetsemvelleoultricesbibendum.Aeneanfaucibus.Morbidolornulla,malesuadaeu,pulvinarat,mollisac,nulla.Curabiturauc-torsempernulla.Donecvariusorciegetrisus.Duisnibhmi,congueeu,accumsaneleifend,sagittisquis,diam.Duisegetorcisitametorcidignissimrutrum.
SVG output generated from text.dvi with dvisvgm.
The text.dvi file was generated from text.tex via pdfLaTeX.
Compilation
EngineFmt.Avg.σMin.Max.
LuaLaTeXmkPDF1,329301,2771,368
LuaLaTeXmkDVI1,255361,1841,303
XeLaTeXmkPDF1,151301,1291,220
XeLaTeXmkXDV51714505553
pdfLaTeXmkPDF80513794836
pdfLaTeXmkDVI54514527573
LuaLaTeXPDF1,084281,0541,143
LuaLaTeXDVI994189681,032
pdfLaTeXPDF6309617648
pdfLaTeXDVI34612336377
XeLaTeXPDF975279501,036
XeLaTeXXDV4607446470
Conversion
ConverterFmt.EngineAvg.σSizeSize (opt.)
dvisvgmDVILuaLaTeXmk352513,39512,617
dvisvgmXDVXeLaTeXmk405513,31712,526
dvisvgmDVIpdfLaTeXmk405513,31712,526
dvisvgmDVILuaLaTeX351513,39512,617
dvisvgmDVIpdfLaTeX407813,31712,526
dvisvgmXDVXeLaTeX350712,21711,495
dvisvgmPDFLuaLaTeXmk140213,39512,721
dvisvgmPDFXeLaTeXmk143713,31712,526
dvisvgmPDFpdfLaTeXmk139213,29512,622
dvisvgmPDFLuaLaTeX140213,39512,721
dvisvgmPDFpdfLaTeX139213,29512,622
dvisvgmPDFXeLaTeX141512,21711,495
pdftocairoPDFLuaLaTeXmk31184,08048,071
pdftocairoPDFXeLaTeXmk32384,00348,184
pdftocairoPDFpdfLaTeXmk32185,32548,551
pdftocairoPDFLuaLaTeX31184,08048,071
pdftocairoPDFpdfLaTeX33385,32548,551
pdftocairoPDFXeLaTeX32284,00348,184

Transparency

transparency.tex
latex
\documentclass[dvisvgm]{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[thick, fill opacity=0.5]
    \filldraw[fill=red] (0:1) circle (1.5);
    \filldraw[fill=green] (120:1) circle (1.5);
    \filldraw[fill=blue] (-120:1) circle (1.5);
\end{tikzpicture}
\end{document}
latex
\documentclass{standalone}
\usepackage{tikz}

\begin{document}
\begin{tikzpicture}[thick, fill opacity=0.5]
    \filldraw[fill=red] (0:1) circle (1.5);
    \filldraw[fill=green] (120:1) circle (1.5);
    \filldraw[fill=blue] (-120:1) circle (1.5);
\end{tikzpicture}
\end{document}
transparency.svg
SVG output generated from transparency.dvi with dvisvgm.
The transparency.dvi file was generated from transparency.tex via pdfLaTeX.
Compilation
EngineFmt.Avg.σMin.Max.
LuaLaTeXmkPDF1,466171,4281,484
LuaLaTeXmkDVI1,452161,4341,486
XeLaTeXmkPDF1,321221,2811,355
XeLaTeXmkXDV71610695727
pdfLaTeXmkPDF7418726754
pdfLaTeXmkDVI73513718760
LuaLaTeXPDF1,231311,1981,292
LuaLaTeXDVI1,191201,1661,228
pdfLaTeXPDF5257515535
pdfLaTeXDVI53739487617
XeLaTeXPDF1,129261,0841,161
XeLaTeXXDV59316575625
Conversion
ConverterFmt.EngineAvg.σSizeSize (opt.)
dvisvgmDVILuaLaTeXmk31361,201736
dvisvgmXDVXeLaTeXmk38861,201736
dvisvgmDVIpdfLaTeXmk38871,201736
dvisvgmDVILuaLaTeX31221,201736
dvisvgmDVIpdfLaTeX38531,201736
dvisvgmXDVXeLaTeX31341,201736
dvisvgmPDFLuaLaTeXmk11841,9011,256
dvisvgmPDFXeLaTeXmk11941,201736
dvisvgmPDFpdfLaTeXmk11841,9011,256
dvisvgmPDFLuaLaTeX12051,9011,256
dvisvgmPDFpdfLaTeX11741,9011,256
dvisvgmPDFXeLaTeX11741,201736
pdftocairoPDFLuaLaTeXmk2813,8611,833
pdftocairoPDFXeLaTeXmk2813,8501,832
pdftocairoPDFpdfLaTeXmk2813,8611,833
pdftocairoPDFLuaLaTeX2813,8611,833
pdftocairoPDFpdfLaTeX2813,8611,833
pdftocairoPDFXeLaTeX2813,8501,832