mirror of
https://github.com/NixOS/nix.git
synced 2025-11-20 09:19:36 +01:00
[TMP]: Add some benchmarking tools
Not intended to be merged (at least definitely not as it is)
This commit is contained in:
parent
bb06640971
commit
891390d76f
3 changed files with 71 additions and 1 deletions
|
|
@ -294,6 +294,13 @@
|
|||
'';
|
||||
};
|
||||
|
||||
nix-benchmarks = prev.runCommandNoCC "nix-benchmarks" {
|
||||
buildInputs = [ final.nix prev.hyperfine ];
|
||||
THINGTOBENCH = ./thingToBench.nix;
|
||||
NIX_PATH="nixpkgs=${prev.path}";
|
||||
} ''
|
||||
bash ${./benchmark.sh} run_all
|
||||
'';
|
||||
};
|
||||
|
||||
hydraJobs = {
|
||||
|
|
@ -485,7 +492,7 @@
|
|||
});
|
||||
|
||||
packages = forAllSystems (system: {
|
||||
inherit (nixpkgsFor.${system}) nix;
|
||||
inherit (nixpkgsFor.${system}) nix nix-benchmarks;
|
||||
} // nixpkgs.lib.optionalAttrs (builtins.elem system linux64BitSystems) {
|
||||
nix-static = let
|
||||
nixpkgs = nixpkgsFor.${system}.pkgsStatic;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue