Skip to content

Commit 581778e

Browse files
committed
add benchmark
1 parent 689b85f commit 581778e

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

README.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Run `fls --help`
3838

3939
Run `fls` to list your current directory.
4040

41-
![](./images/fls_demo.gif)
41+
![demo](./images/fls_demo.gif)
4242

4343
```bash
4444
$ touch aaa.001.tif aaa.002.tif aaa.003.tif aaa.004.tif aaa.005.tif foo_bar.exr
@@ -139,17 +139,31 @@ $ fls -r -- .\samples\
139139

140140
## Benchmarks
141141

142-
![](https://camo.githubusercontent.com/e8a50ee9600d66095bf0046f06e65ef8fe0675a40122db2a801d1f66e595add6/68747470733a2f2f692e726564642e69742f74376e733971746235676838312e6a7067)
142+
![fast](https://camo.githubusercontent.com/e8a50ee9600d66095bf0046f06e65ef8fe0675a40122db2a801d1f66e595add6/68747470733a2f2f692e726564642e69742f74376e733971746235676838312e6a7067)
143143

144144
Using the sample **big**, some time comparaison with [rvls](https://www.shotgridsoftware.com/rv/download/), [lsseq](https://github.com/jrowellfx/lsseq) or [lss](https://github.com/rsgalloway/pyseq).
145145

146146
Here benchmarks done with [hyperfine](https://github.com/sharkdp/hyperfine) with a warmup of 3 iterations
147147

148148
### Simple file listing
149149

150-
| Tool | `fls` | `rvls` |`lsseq -l`| `lss` |
150+
| Tool | `fls 4.0.0` | `rvls 2023.0.1` |`lsseq -l`| `lss` |
151151
|------|----------|----------|----------|----------|
152-
| Time | 6.7 ms | 43.1 ms | 33.5 ms | 41.8 ms |
152+
| Time | 4.7 ms | 23.3 ms | 33.5 ms | 41.8 ms |
153+
154+
```bash
155+
hyperfine -N --warmup 3 'target/release/fls -- ./samples/big/'
156+
Benchmark 1: target/release/fls -- ./samples/big/
157+
Time (mean ± σ): 4.7 ms ± 0.7 ms [User: 4.9 ms, System: 1.7 ms]
158+
Range (min … max): 4.3 ms … 11.5 ms 560 runs
159+
```
160+
161+
```bash
162+
hyperfine --warmup 3 '~/Downloads/rv-centos7-x86-64-2023.0.1/bin/rvls ./samples/big/'
163+
Benchmark 1: ~/Downloads/rv-centos7-x86-64-2023.0.1/bin/rvls ./samples/big/
164+
Time (mean ± σ): 23.3 ms ± 7.1 ms [User: 20.1 ms, System: 2.3 ms]
165+
Range (min … max): 19.4 ms … 51.5 ms 75 runs
166+
```
153167

154168
### Exr reading
155169

0 commit comments

Comments
 (0)