mirror of
https://github.com/lsd-rs/lsd
synced 2024-11-10 06:14:19 +00:00
Add some benchmark
This commit is contained in:
parent
8d15f4b1f3
commit
fa3098c4c2
2 changed files with 10 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
out.md
|
||||
**/*.rs.bk
|
||||
|
|
|
@ -31,6 +31,15 @@ yay lsd-git
|
|||
*Note for `rbenv` users - In case of load error when using `lc`, please try the below patch.*
|
||||
3. Install the lsd package with `cargo install lsd`
|
||||
|
||||
## Benchmark
|
||||
|
||||
Result from `hyperfine --warmup 10 'lsd -la /etc/*' 'colorls -la /etc/*' --export-markdown out.md`:
|
||||
|
||||
| Command | Mean [ms] | Min…Max [ms] |
|
||||
|:---|---:|---:|
|
||||
| `lsd -la /etc/*` | 11.0 ± 0.5 | 9.9…13.0 |
|
||||
| `colorls -la /etc/*` | 503.3 ± 5.6 | 494.6…513.4 |
|
||||
|
||||
## TODO
|
||||
|
||||
- [x] Handle the `-l` option (used by default for now)
|
||||
|
|
Loading…
Reference in a new issue