Skip to content

Commit

Permalink
benchmarks updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dundee committed Nov 28, 2021
1 parent d392f24 commit 0538970
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ gobench:
benchmark:
hyperfine --export-markdown=bench-cold.md \
--prepare 'sync; echo 3 | sudo tee /proc/sys/vm/drop_caches' \
'gdu -npc ~' 'dua ~' 'duc index ~' 'ncdu -0 -o /dev/null ~' \
'gdu -npc ~' 'gdu -gnpc ~' 'dua ~' 'duc index ~' 'ncdu -0 -o /dev/null ~' \
'diskus ~' 'du -hs ~' 'dust -d0 ~'
hyperfine --export-markdown=bench-warm.md \
--warmup 5 \
'gdu -npc ~' 'dua ~' 'duc index ~' 'ncdu -0 -o /dev/null ~' \
'gdu -npc ~' 'gdu -gnpc ~' 'dua ~' 'duc index ~' 'ncdu -0 -o /dev/null ~' \
'diskus ~' 'du -hs ~' 'dust -d0 ~'

clean:
Expand Down
30 changes: 16 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,25 +179,27 @@ Filesystem cache was cleared using `sync; echo 3 | sudo tee /proc/sys/vm/drop_ca

| Command | Mean [s] | Min [s] | Max [s] | Relative |
|:---|---:|---:|---:|---:|
| `gdu -npc ~` | 5.377 ± 0.479 | 5.132 | 6.719 | 1.07 ± 0.10 |
| `dua ~` | 6.431 ± 0.015 | 6.417 | 6.465 | 1.28 ± 0.01 |
| `duc index ~` | 30.432 ± 2.965 | 29.321 | 38.866 | 6.07 ± 0.59 |
| `ncdu -0 -o /dev/null ~` | 29.435 ± 0.145 | 29.188 | 29.711 | 5.87 ± 0.06 |
| `diskus ~` | 5.013 ± 0.042 | 4.948 | 5.087 | 1.00 |
| `du -hs ~` | 29.445 ± 3.223 | 28.337 | 38.616 | 5.87 ± 0.64 |
| `dust -d0 ~` | 6.673 ± 0.483 | 6.337 | 7.788 | 1.33 ± 0.10 |
| `gdu -npc ~` | 5.390 ± 0.094 | 5.303 | 5.644 | 1.00 ± 0.02 |
| `gdu -gnpc ~` | 6.275 ± 2.406 | 5.379 | 13.097 | 1.17 ± 0.45 |
| `dua ~` | 6.727 ± 0.019 | 6.689 | 6.748 | 1.25 ± 0.01 |
| `duc index ~` | 31.377 ± 0.176 | 31.085 | 31.701 | 5.83 ± 0.06 |
| `ncdu -0 -o /dev/null ~` | 31.311 ± 0.100 | 31.170 | 31.507 | 5.82 ± 0.05 |
| `diskus ~` | 5.383 ± 0.044 | 5.287 | 5.440 | 1.00 |
| `du -hs ~` | 30.333 ± 0.408 | 29.865 | 31.086 | 5.63 ± 0.09 |
| `dust -d0 ~` | 6.889 ± 0.354 | 6.738 | 7.889 | 1.28 ± 0.07 |

### Warm cache

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `gdu -npc ~` | 710.8 ± 11.0 | 692.8 | 730.7 | 1.67 ± 0.10 |
| `dua ~` | 532.0 ± 16.5 | 496.6 | 551.2 | 1.25 ± 0.08 |
| `duc index ~` | 1706.6 ± 23.2 | 1668.1 | 1729.3 | 4.01 ± 0.23 |
| `ncdu -0 -o /dev/null ~` | 2399.4 ± 12.5 | 2388.5 | 2425.2 | 5.64 ± 0.32 |
| `diskus ~` | 425.1 ± 23.7 | 393.3 | 469.7 | 1.00 |
| `du -hs ~` | 1397.0 ± 19.6 | 1378.2 | 1435.5 | 3.29 ± 0.19 |
| `dust -d0 ~` | 663.3 ± 9.8 | 645.0 | 679.5 | 1.56 ± 0.09 |
| `gdu -npc ~` | 840.3 ± 13.4 | 817.7 | 867.8 | 1.74 ± 0.06 |
| `gdu -gnpc ~` | 1038.4 ± 9.7 | 1021.3 | 1054.1 | 2.15 ± 0.07 |
| `dua ~` | 635.0 ± 20.6 | 602.6 | 669.9 | 1.32 ± 0.06 |
| `duc index ~` | 1879.5 ± 18.5 | 1853.5 | 1922.1 | 3.90 ± 0.13 |
| `ncdu -0 -o /dev/null ~` | 2618.5 ± 10.0 | 2607.9 | 2634.8 | 5.43 ± 0.18 |
| `diskus ~` | 482.4 ± 15.6 | 456.5 | 516.9 | 1.00 |
| `du -hs ~` | 1508.7 ± 8.2 | 1501.1 | 1524.3 | 3.13 ± 0.10 |
| `dust -d0 ~` | 832.5 ± 27.0 | 797.3 | 895.5 | 1.73 ± 0.08 |

## Alternatives

Expand Down

0 comments on commit 0538970

Please sign in to comment.