about summary refs log tree commit diff
path: root/tests/init.sh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-19T13·53+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-19T13·53+0000
commit9488ae7357b718e09362c22f075cc5553c758214 (patch)
tree765fe2f7552291d213a09f35b7b78ec3fdf1714b /tests/init.sh
parente0afaf18576e8c04110f4ae8499a311cae261215 (diff)
* `show-duplication.pl', a small utility that shows the amount of
  package duplication present in (e.g.) a profile.  It shows the
  number of instances of each package in a closure, along with the
  size in bytes of each instance as well as the "waste" (the
  difference between the sum of the sizes of all instances and the
  average size).

  $ ./show-duplication.pl /nix/var/nix/profiles/default
  gcc 11
    3.3.6 19293318
    3.4.4 21425257
    ...
    average 14942970, waste 149429707
  coreutils 6
  ...
  average package duplication 1.87628865979381, total size 3486330471, total waste 1335324237, 38.3017114443825% wasted

  This utility is useful for measuring the cost in terms of disk space
  of the Nix approach.

Diffstat (limited to 'tests/init.sh')
0 files changed, 0 insertions, 0 deletions