mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-11 22:00:08 +01:00
19 lines
551 B
Nix
19 lines
551 B
Nix
{
|
|
inputs,
|
|
cell,
|
|
}: {
|
|
bench = inputs.nixpkgs.writeShellApplication {
|
|
name = "benchmark";
|
|
runtimeInputs = [inputs.nixpkgs.hyperfine];
|
|
text = ''
|
|
echo "Comparison cases first:"
|
|
hyperfine -w 3 \
|
|
'nix-instantiate ${inputs.self}/benchmark/shared.nix' \
|
|
'nix-instantiate ${inputs.self}/benchmark/empty.nix'
|
|
echo "Now real benchmark:"
|
|
hyperfine -w 3 \
|
|
'nix-instantiate ${inputs.self}/benchmark/nixpkgs-shell.nix' \
|
|
'nix-instantiate ${inputs.self}/benchmark/devshell.nix'
|
|
'';
|
|
};
|
|
}
|