summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Peter <sharkdp@users.noreply.github.com>2018-11-01 21:28:58 +0100
committerGitHub <noreply@github.com>2018-11-01 21:28:58 +0100
commitdc9c3289ec67332a34f6c9b36b1ad867e7bf3aaa (patch)
tree34642c00b2882900cffd32d9f4c75b3a125cf79a
parentdb9fe006ba01cc0607f66543d010ebc0d7aa21da (diff)
Added `dust` to benchmark results
closes #1
-rw-r--r--README.md27
1 files changed, 14 insertions, 13 deletions
diff --git a/README.md b/README.md
index d3d405c..a6e2c3a 100644
--- a/README.md
+++ b/README.md
@@ -19,27 +19,27 @@ The following benchmarks have been performed with [hyperfine](https://github.com
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 `dup`, we also add [tin-summer](https://github.com/vmchale/tin-summer) (`sn`) in
-our comparison. It is a fully-featured replacement for (alternative to) `du` written in Rust, which you
-should check out. The optimal number of threads for `sn` (`-j` option) was determined
-via `hyperfine --parameter-scan`.
+In addition to `du` and `dup`, we also add [tin-summer](https://github.com/vmchale/tin-summer) (`sn`) and
+[`dust`](https://github.com/bootandy/dust) in our comparison. Both are also written in Rust and provide
+much more features than `dup` (check them out!). The optimal number of threads for `sn` (`-j` option) was
+determined via `hyperfine --parameter-scan`.
### Cold disk cache
```bash
sudo -v
hyperfine --prepare 'sync; echo 3 | sudo tee /proc/sys/vm/drop_caches' \
- 'dup' 'sn p -d0 -j8' 'du -shb'
+ 'dup' 'sn p -d0 -j8' 'du -sb' 'dust -d0'
```
(the `sudo`/`sync`/`drop_caches` commands are a way to
[clear the filesystem caches between benchmarking runs](https://github.com/sharkdp/hyperfine#io-heavy-programs))
| Command | Mean [s] | Min…Max [s] |
|:---|---:|---:|
-| `dup` | 3.206 ± 0.026 | 3.170…3.241 |
-| `sn p -d0 -j8` | 9.799 ± 0.063 | 9.700…9.909 |
-| `du -shb` | 16.262 ± 0.161 | 16.056…16.552 |
-
+| `dup` | 3.212 ± 0.030 | 3.185…3.276 |
+| `sn p -d0 -j8` | 9.747 ± 0.089 | 9.646…9.908 |
+| `du -sb` | 16.001 ± 0.091 | 15.854…16.181 |
+| `dust -d0` | 19.921 ± 0.354 | 19.508…20.613 |
### Warm disk cache
@@ -47,14 +47,15 @@ On a warm disk cache, the differences are smaller. But I believe that in most si
in total disk usage, you have a cold disk cache.
```bash
-hyperfine --warmup 5 'dup' 'sn p -d0 -j8' 'du -shb'
+hyperfine --warmup 5 'dup' 'sn p -d0 -j8' 'du -sb' 'dust -d0'
```
| Command | Mean [ms] | Min…Max [ms] |
|:---|---:|---:|
-| `dup` | 413.6 ± 3.8 | 405.9…420.5 |
-| `sn p -d0 -j8` | 613.6 ± 11.7 | 602.0…633.0 |
-| `du -shb` | 1112.2 ± 4.2 | 1104.9…1118.4 |
+| `dup` | 414.4 ± 7.1 | 404.9…425.3 |
+| `sn p -d0 -j8` | 606.6 ± 20.0 | 572.8…647.2 |
+| `du -sb` | 1105.2 ± 13.5 | 1089.3…1129.9 |
+| `dust -d0` | 3600.4 ± 23.5 | 3561.7…3649.5 |
## Installation