Tech News
← Back to articles

lsr: ls with io_uring

read original related products more articles

lsr

ls(1) but with io_uring

Installation

lsr uses the zig build system. To install, you will need zig 0.14.0. To install for the local user (assuming $HOME/.local/bin is in $PATH ), run:

zig build -Doptimize=ReleaseSmall --prefix $HOME/.local

which will install lsr and the associated manpage appropriately. Replace $HOME/.local with your preferred installation directory.

Usage

lsr [options] [path] --help Print this message and exit --version Print the version string DISPLAY OPTIONS -1, --oneline Print entries one per line -a, --all Show files that start with a dot (ASCII 0x2E) -A, --almost-all Like --all, but skips implicit "." and ".." directories -C, --columns Print the output in columns --color=WHEN When to use colors (always, auto, never) --group-directories-first Print all directories before printing regular files --hyperlinks=WHEN When to use OSC 8 hyperlinks (always, auto, never) --icons=WHEN When to display icons (always, auto, never) -l, --long Display extended file metadata -r, --reverse Reverse the sort order -t, --time Sort the entries by modification time, most recent first

Benchmarks

Benchmarks were all gathered on the same set of directories, using the latest releases of each program (versions are shown below). All benchmarks run on Linux (because io_uring). lsr does work on macOS/BSD as well, but will not see the syscall batching benefits that are available with io_uring.

... continue reading