Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
base: 49d69a521888^
Choose a base ref
...
head repository: NixOS/nix
compare: a9e32d3c5dd6
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Mar 28, 2019

  1. Copy the full SHA
    49d69a5 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. nix: trivial instantiation timing

    Some trivial experiment with timing.
    
    after `make install`:
    
        ./inst/bin/nix-instantiate '<nixpkgs/pkgs/top-level/release.nix>' \
            -A unstable -vvvvvv 2>&1 > log
    
        cat log | grep ':clock:' | sort \
            | awk '
                { sums[$2] += $3; calls[$2] += 1; }
                END {
                    for (category in sums) {
                        print category, sums[category], calls[category],
                              sums[category] / calls[category];
                    }
                }'
    
    showed me:
    
    | function-position                                                                                                               | ns      | calls |
    |---------------------------------------------------------------------------------------------------------------------------------|---------|-------|
    | /nix/store/xnjvl3lnbl729hsi585v5075fqsgijl9-nixos-19.03.172138.5c52b25283a/nixos/pkgs/stdenv/generic/make-derivation.nix:108:33 | 437582  | 8981  |
    | /nix/store/xnjvl3lnbl729hsi585v5075fqsgijl9-nixos-19.03.172138.5c52b25283a/nixos/pkgs/stdenv/generic/check-meta.nix:22:5        | 503557  | 14230 |
    | /nix/store/xnjvl3lnbl729hsi585v5075fqsgijl9-nixos-19.03.172138.5c52b25283a/nixos/pkgs/stdenv/generic/check-meta.nix:214:9       | 2817229 | 5093  |
    
    and:
    
    | function-position                                                                                                               | ns      | calls | ns/call |
    | /nix/store/xnjvl3lnbl729hsi585v5075fqsgijl9-nixos-19.03.172138.5c52b25283a/nixos/pkgs/development/compilers/ghc/8.6.4.nix:20:27 | 3309    | 3     | 1103    |
    | /nix/var/nix/profiles/per-user/root/channels/nixos/pkgs/top-level/release-lib.nix:83:9                                          | 272303  | 195   | 1396.43 |
    | /nix/var/nix/profiles/per-user/root/channels/nixos/lib/systems/parse.nix:174:12                                                 | 10180   | 6     | 1696.67 |
    grahamc committed Apr 11, 2019
    Copy the full SHA
    c155424 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2019

  1. cores vs. jobs: fixup

    grahamc committed Jul 18, 2019
    Copy the full SHA
    a9e32d3 View commit details
    Browse the repository at this point in the history