Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerun benchmarks #157

Merged
merged 9 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ There already are multiple implementations of this standard implemented in diffe
* https://github.com/google/jsonnet[C++];
* https://github.com/google/go-jsonnet/[Go];
* https://github.com/databricks/sjsonnet[Scala].
* [NEW] https://github.com/eduardosm/rsjsonnet[Another Rust impl appears].

This implementation shows performance better than all existing implementations.
For more information see link:./docs/benchmarks.md[benchmarks]
Expand Down
349 changes: 209 additions & 140 deletions docs/benchmarks.md

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
jsonnet = pkgs.callPackage ./nix/jsonnet.nix {};
# I didn't managed to build it, and nixpkgs version is marked as broken
# haskell-jsonnet = pkgs.callPackage ./nix/haskell-jsonnet.nix { };
rsjsonnet = pkgs.callPackage ./nix/rsjsonnet.nix {};

jrsonnet = pkgs.callPackage ./nix/jrsonnet.nix {
inherit craneLib;
Expand All @@ -60,55 +61,55 @@
};

benchmarks = pkgs.callPackage ./nix/benchmarks.nix {
inherit go-jsonnet sjsonnet jsonnet;
inherit go-jsonnet sjsonnet jsonnet rsjsonnet;
jrsonnetVariants = [
{
drv = jrsonnet.overrideAttrs {forBenchmarks = true;};
drv = jrsonnet.override {forBenchmarks = true;};
name = "";
}
];
};
benchmarks-quick = pkgs.callPackage ./nix/benchmarks.nix {
inherit go-jsonnet sjsonnet jsonnet;
inherit go-jsonnet sjsonnet jsonnet rsjsonnet;
quick = true;
jrsonnetVariants = [
{
drv = jrsonnet.overrideAttrs {forBenchmarks = true;};
drv = jrsonnet.override {forBenchmarks = true;};
name = "";
}
];
};
benchmarks-against-release = pkgs.callPackage ./nix/benchmarks.nix {
inherit go-jsonnet sjsonnet jsonnet;
inherit go-jsonnet sjsonnet jsonnet rsjsonnet;
jrsonnetVariants = [
{
drv = jrsonnet.overrideAttrs {forBenchmarks = true;};
drv = jrsonnet.override {forBenchmarks = true;};
name = "current";
}
{
drv = jrsonnet-nightly.overrideAttrs {forBenchmarks = true;};
drv = jrsonnet-nightly.override {forBenchmarks = true;};
name = "current-nightly";
}
{
drv = jrsonnet-release.overrideAttrs {forBenchmarks = true;};
drv = jrsonnet-release.override {forBenchmarks = true;};
name = "release";
}
];
};
benchmarks-quick-against-release = pkgs.callPackage ./nix/benchmarks.nix {
inherit go-jsonnet sjsonnet jsonnet;
inherit go-jsonnet sjsonnet jsonnet rsjsonnet;
quick = true;
jrsonnetVariants = [
{
drv = jrsonnet;
drv = jrsonnet.override {forBenchmarks = true;};
name = "current";
}
{
drv = jrsonnet-nightly;
drv = jrsonnet-nightly.override {forBenchmarks = true;};
name = "current-nightly";
}
{
drv = jrsonnet-release;
drv = jrsonnet-release.override {forBenchmarks = true;};
name = "release";
}
];
Expand Down
Loading
Loading