summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2018-11-04 21:49:57 +0100
committersharkdp <davidpeter@web.de>2018-11-04 21:49:57 +0100
commita0a28d9efb91cbd117f225b5ceb34deaa374ea19 (patch)
treeee7582561d54c8c41eb586d8ce92ccb600e2185b
parente6f797d488ba287f92bdbde25156ff2d07405f66 (diff)
Update benchmark resultsuse-custom-parallel-walk
-rw-r--r--README.md24
1 files changed, 13 insertions, 11 deletions
diff --git a/README.md b/README.md
index 2097185..f3fabf0 100644
--- a/README.md
+++ b/README.md
@@ -5,8 +5,8 @@
*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 nine times faster than `du` for
-a cold disk cache and more than twice as fast on a warm disk cache.
+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.
``` bash
> diskus
@@ -36,10 +36,11 @@ hyperfine --prepare 'sync; echo 3 | sudo tee /proc/sys/vm/drop_caches' \
| Command | Mean [s] | Min…Max [s] |
|:---|---:|---:|
-| `diskus` | 1.729 ± 0.012 | 1.717…1.756 |
-| `sn p -d0 -j8` | 9.778 ± 0.098 | 9.587…9.904 |
-| `du -sb` | 16.016 ± 0.067 | 15.923…16.147 |
-| `dust -d0` | 19.845 ± 0.466 | 19.428…20.948 |
+| `diskus` | 1.649 ± 0.009 | 1.640…1.663 |
+| `sn p -d0 -j8` | 9.701 ± 0.067 | 9.598…9.828 |
+| `du -sb` | 16.039 ± 0.069 | 15.918…16.152 |
+| `dust -d0` | 19.769 ± 0.285 | 19.564…20.561 |
+
### Warm disk cache
@@ -48,12 +49,13 @@ On a warm disk cache, the differences are smaller:
hyperfine --warmup 5 'diskus' 'sn p -d0 -j8' 'du -sb' 'dust -d0'
```
-| Command | Mean [ms] | Min…Max [ms] |
+| Command | Mean [s] | Min…Max [s] |
|:---|---:|---:|
-| `diskus` | 465.9 ± 14.7 | 446.5…487.4 |
-| `sn p -d0 -j8` | 596.4 ± 12.2 | 579.2…615.9 |
-| `du -sb` | 1100.3 ± 20.5 | 1086.9…1153.0 |
-| `dust -d0` | 3560.1 ± 27.8 | 3521.7…3612.8 |
+| `diskus` | 0.314 ± 0.007 | 0.303…0.329 |
+| `sn p -d0 -j8` | 0.622 ± 0.008 | 0.611…0.634 |
+| `du -sb` | 1.130 ± 0.013 | 1.116…1.161 |
+| `dust -d0` | 3.593 ± 0.057 | 3.544…3.743 |
+
## Installation