this repo has no description
Zig 100.0%
25 1 3

Clone this repository

https://tangled.org/t6e.dev/lsr
git@tangled.org:t6e.dev/lsr

For self-hosted knots, clone URLs may differ based on your setup.

README.md

lsr#

ls(1) but with io_uring

screenshot

Benchmarks#

Benchmarks were all gathered on the same set of directories, using the latest releases of each program (versions are shown below).

Program Version
lsr 0.1.0
ls 9.7
eza 0.21.3
lsd 1.1.5
uutils 0.0.30

Time#

Data gathered with hyperfine on a directory of n plain files.

Program n=10 n=100 n=1,000 n=10,000
lsr -al 372.6 µs 634.3 µs 2.7 ms 22.1 ms
ls -al 1.4 ms 1.7 ms 4.7 ms 38.0 ms
eza -al 2.9 ms 3.3 ms 6.6 ms 40.2 ms
lsd -al 2.1 ms 3.5 ms 17.0 ms 153.4 ms
uutils ls -al 2.9 ms 3.6 ms 11.3 ms 89.6 ms

Syscalls#

Data gathered with strace -c on a directory of n plain files.

Program n=10 n=100 n=1,000 n=10,000
lsr -al 20 28 105 848
ls -al 405 675 3,377 30,396
eza -al 319 411 1,320 10,364
lsd -al 508 1,408 10,423 100,512
uutils ls -al 445 986 6,397 10,005