Skip to content

Instantly share code, notes, and snippets.

@moleike
Last active March 25, 2021 11:09
Show Gist options
  • Save moleike/17d5de15be06b05ddad317fe1fcf95a5 to your computer and use it in GitHub Desktop.
Save moleike/17d5de15be06b05ddad317fe1fcf95a5 to your computer and use it in GitHub Desktop.
Jsonnet benchmarks

Benchmark results

Command Mean [ms] Min [ms] Max [ms] Relative
hs-jsonnet bench.01.jsonnet 30.4 ± 5.5 20.8 41.8 1.00
jsonnet bench.01.jsonnet 89.4 ± 5.9 86.6 116.8 2.94 ± 0.57
hs-jsonnet bench.03.jsonnet 4.914 ± 1.423 4.135 8.748 8.51 ± 2.50
jsonnet bench.03.jsonnet 0.577 ± 0.027 0.555 0.633 1.00
hs-jsonnet bench.04.jsonnet 1.455 ± 0.154 1.331 1.834 1.00
jsonnet bench.04.jsonnet 5.670 ± 2.564 4.028 11.537 3.90 ± 1.81
hs-jsonnet bench.05.gen.jsonnet 0.289 ± 0.021 0.262 0.326 1.00
jsonnet bench.05.gen.jsonnet 6.998 ± 0.957 6.328 9.480 24.24 ± 3.74
hs-jsonnet bench.07.jsonnet 552.0 ± 36.9 483.9 612.0 1.00
jsonnet bench.07.jsonnet stack overflow
hs-jsonnet bench.08.jsonnet 2.524 ± 0.227 2.242 3.075 1.00
jsonnet bench.08.jsonnet 3.017 ± 0.381 2.734 3.846 1.20 ± 0.19
  • Note: Using stock jsonnet version v0.17.0 and hackage v.0.0.1.0 version of haskell-jsonnet.
  • Note: Benchmarking done using hyperfine
  • Note: numbers will look different if we compare against Go version, since C++ version is known to be slow: google/jsonnet#826
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment