Home

Awesome

Djot Implementations

This repository benchmarks the various Djot implementations and generates a report.

Benchmarks

pandoc manual benchmarks

tartan wikipedia benchmarks

Running on 12th Gen Intel(R) Core(TM) i5-12600K at 2024-12-14 21:51:05-05:00

Time to render pandoc-manual.dj (244K) into html:

CommandMean [ms]Min [ms]Max [ms]Relative
Rust4.5 ± 1.43.113.61.00
Haskell23.5 ± 4.720.942.05.26 ± 1.98
JavaScript56.2 ± 1.454.262.912.61 ± 4.02
Lua62.7 ± 1.460.066.714.05 ± 4.48
Go66.4 ± 22.120.3108.514.89 ± 6.85

Time to render tartan-wikipedia.dj (1.3M) into html:

CommandMean [ms]Min [ms]Max [ms]Relative
Rust19.9 ± 0.419.021.61.00
Haskell132.6 ± 0.1132.3132.96.67 ± 0.13
JavaScript171.5 ± 1.3169.2174.28.63 ± 0.18
Go182.5 ± 30.8144.6269.19.18 ± 1.56
Lua374.6 ± 6.5365.1388.018.85 ± 0.49

Running on AMD EPYC 7763 64-Core Processor at 2024-12-15 03:15:54+00:00

Time to render pandoc-manual.dj (244K) into html:

CommandMean [ms]Min [ms]Max [ms]Relative
Rust6.1 ± 0.15.96.41.00
Go36.1 ± 2.732.042.75.88 ± 0.44
Haskell42.3 ± 1.732.252.56.89 ± 0.29
Lua107.9 ± 3.5102.5113.817.59 ± 0.61
JavaScript118.0 ± 3.8111.6124.019.24 ± 0.65

Time to render tartan-wikipedia.dj (1.3M) into html:

CommandMean [ms]Min [ms]Max [ms]Relative
Rust34.4 ± 0.333.936.01.00
Go214.9 ± 17.5193.6253.06.24 ± 0.51
Haskell235.7 ± 0.1235.6236.06.85 ± 0.06
JavaScript355.0 ± 5.7346.5365.310.32 ± 0.19
Lua659.6 ± 12.4645.2684.519.17 ± 0.40

Tools

go version go1.23.3 linux/amd64
Go djot godjot@v1.0.5
The Glorious Glasgow Haskell Compilation System, version 9.4.8
Haskell djot 0.1.2.2
node version v23.3.0
JavaScript djot 0.3.1
LuaJIT 2.1.0-beta3
Lua djot 0.2.1
rustc 1.83.0 (90b35a623 2024-11-26)
jotdown v0.7.0