base16

Pure Haskell base16 encoding/decoding (docs.ppad.tech/base16).
git clone git://git.ppad.tech/base16.git
Log | Files | Refs | README | LICENSE

commit 45ebbecf79b2a8d22dae3b442cb482d5d19aaea7
parent d4fef33c2331b0a6f38a5da67b3b992e544d7c4d
Author: Jared Tobin <jared@jtobin.io>
Date:   Fri, 28 Feb 2025 09:34:25 +0400

meta: benchmark figures from vps run

Diffstat:
MREADME.md | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/README.md b/README.md @@ -35,21 +35,21 @@ The aim is best-in-class performance for pure, highly-auditable Haskell code. We could go slightly faster by direct allocation and writes, but we get pretty close to the best impure versions with only builders. -Current benchmark figures on 1kb inputs on my mid-2020 MacBook Air look +Current benchmark figures on 1kb inputs on a relatively-beefy NixOS VPS look like (use `cabal bench` to run the benchmark suite): ``` benchmarking encode/ppad-base16 - time 5.929 μs (5.847 μs .. 6.013 μs) + time 7.634 μs (7.543 μs .. 7.749 μs) 0.999 R² (0.998 R² .. 0.999 R²) - mean 5.975 μs (5.913 μs .. 6.057 μs) - std dev 233.1 ns (172.4 ns .. 310.0 ns) + mean 7.693 μs (7.622 μs .. 7.768 μs) + std dev 240.6 ns (196.5 ns .. 324.8 ns) benchmarking ppad-base16 - time 2.510 μs (2.454 μs .. 2.590 μs) - 0.994 R² (0.989 R² .. 0.997 R²) - mean 2.599 μs (2.543 μs .. 2.671 μs) - std dev 216.3 ns (175.9 ns .. 272.8 ns) + time 1.893 μs (1.871 μs .. 1.919 μs) + 0.998 R² (0.998 R² .. 0.999 R²) + mean 1.897 μs (1.871 μs .. 1.924 μs) + std dev 91.64 ns (74.26 ns .. 118.2 ns) ``` ## Security