@hackage hstar0.1.0.2
Haskell version of tar CLI utility
Installation
Dependencies (0)
- archive-libarchive
- archive-sig >=0.2.1.2
- archive-tar
- archive-tar-bytestring
- base >=4.11 && <5
- brotli Show all…
Dependents (0)
Package Flags
development
(off by default)
Enable `-Werror`
pure
(off by default)
Use Haskell backend instead of libarchive
tar-bytestring
(off by default)
Use tar-bytestring
with-brotli
(on by default)
Enable brotli compression support
hstar
hstar is a command-line tool like tar,
but written in Haskell and taking advantage of
backpack.
It can be built with a libarchive backend wrapping the C library, or the tar library written in Haskell.
Use
To generate bash shell completions:
hstar --bash-completion-script hstar
Performance
Benchmarks run on Linux.
hstar built with the libarchive backend.
| Program | Compression | Command | Time |
|---|---|---|---|
| bsdtar | lz4 | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.lz4 |
2.411 s |
| hstar | lz4 | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.lz4 |
2.529 s |
| GNU tar | lz4 | lz4 -cd ghc-8.8.2-x86_64-deb9-linux.tar.lz4 | tar -xf - |
2.539 s |
| Schily tar | lz4 | lz4 -cd ghc-8.8.2-x86_64-deb9-linux.tar.lz4 | star -xf - |
1.572 s |
| bsdtar | gzip | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.gz |
4.625 s |
| hstar | gzip | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.gz |
6.378 s |
| GNU tar | gzip | tar xf ghc-8.8.2-x86_64-deb9-linux.tar.gz |
8.335 s |
| Schily tar | gzip | star xf ghc-8.8.2-x86_64-deb9-linux.tar.gz |
8.379 s |
| bsdtar | lzip | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.lz |
12.49 s |
| hstar | lzip | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.lz |
16.12 s |
| GNU tar | lzip | tar xf ghc-8.8.2-x86_64-deb9-linux.tar.lz |
16.71 s |
| Schily tar | lzip | star xf ghc-8.8.2-x86_64-deb9-linux.tar.lz |
15.81 s |
| bsdtar | lzma | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.xz |
14.95 s |
| hstar | lzma | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.xz |
15.37 s |
| GNU tar | lzma | tar xf ghc-8.8.2-x86_64-deb9-linux.tar.xz |
14.32 s |
| Schily tar | lzma | star xf ghc-8.8.2-x86_64-deb9-linux.tar.xz |
14.37 s |
| bsdtar | bzip2 | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.bz2 |
37.85 s |
| hstar | bzip2 | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.bz2 |
38.99 s |
| GNU tar | bzip2 | tar xf ghc-8.8.2-x86_64-deb9-linux.tar.bz2 |
37.90 s |
| Schily tar | bzip2 | star xf ghc-8.8.2-x86_64-deb9-linux.tar.bz2 |
38.27 s |
| bsdtar | zstd | bsdtar -xf ghc-8.8.2-x86_64-deb9-linux.tar.zst |
2.232 s |
| hstar | zstd | hstar unpack ghc-8.8.2-x86_64-deb9-linux.tar.zst |
3.053 s |
| GNU tar | zstd | tar xf ghc-8.8.2-x86_64-deb9-linux.tar.zst |
2.644 s |
| Schily tar | zstd | star xf ghc-8.8.2-x86_64-deb9-linux.tar.zst |
2.237 s |