{"repo":"sharkdp/diskus","free":true,"listed":false,"github":"https://github.com/sharkdp/diskus","clone":"git clone https://github.com/sharkdp/diskus.git","description":"A minimal, fast alternative to 'du -sh'","language":"Rust","stars":1233,"topics":["command-line","tool","cli","rust","filesystem"],"license":"Apache-2.0","category":"cli-tools","readme_excerpt":"diskus A minimal, fast alternative to du -sh . diskus is a very simple program that computes the total size of the current directory. It is a parallelized version of du -sh . On my 8-core laptop, it is about ten times faster than du with a cold disk cache and more than three times faster with a warm disk cache. Benchmark The following benchmarks have been performed with hyperfine on a moderately large folder (15GB, 100k directories, 400k files). Smaller folders are not really of any interest since all programs would finish in a reasonable time that would not interrupt your workflow. In addition to du and diskus , we also add tin-summer ( sn ) and dust in our comparison. Both are also written in Rust and provide much more features than diskus (check them out!). The optimal number of threads for sn ( -j option) was determined via hyperfine --parameter-scan . Cold disk cache (the sudo / sync / drop caches commands are a way to clear the filesystem caches between benchmarking runs) Command Mean [s] Min [s] Max [s] Relative :--- ---: ---: ---: ---: diskus 1.746 ± 0.017 1.728 1.770 1.00 du -sh 17.776 ± 0.549 17.139 18.413 10.18 sn p -d0 -j8 18.094 ± 0.566 17.482 18.579 10.36 dust -d0 21.357 ± 0.328 20.974 21.759 12.23 Warm disk cache On a warm disk cache, the differences are smaller: Command Mean [ms] Min [ms] Max [ms] Relative :--- ---: ---: ---: ---: diskus 500.3 ± 17.3 472.9 530.6 1.00 du -sh 1098.3 ± 10.0 1087.8 1122.4 2.20 sn p -d0 -j8 1122.2 ± 18.2 1107.3 1170.1 2.24 dust -d0","default_branch":null,"files":null,"tree":[],"storefront":"/r/sharkdp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sharkdp/diskus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}