base16

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

commit 26c4a05654734a49bfaf0508baac0efb5ebc4b6e
parent 9f35400ae9c71488d05a2b9d95847d068cdf3a64
Author: Jared Tobin <jared@jtobin.io>
Date:   Sat, 10 Oct 2026 15:29:29 +0400

bench: run comparison and input-size groups

The encode/decode comparison groups and the input-size groups were
defined but never passed to defaultMain.  The input-size groups are
relabelled so their names neither collide with each other nor read as
the 'base16' reference package.  Also drops the unused criterion
dependency from the weigh suite.

Diffstat:
Mbench/Main.hs | 8++++++--
Mppad-base16.cabal | 1-
2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/bench/Main.hs b/bench/Main.hs @@ -15,6 +15,10 @@ main :: IO () main = defaultMain [ minimal_encode , minimal_decode + , encode + , decode + , encode_various + , decode_various ] minimal_encode :: Benchmark @@ -47,7 +51,7 @@ decode = bgroup "decode" [ ] decode_various :: Benchmark -decode_various = bgroup "base16" [ +decode_various = bgroup "decode (input size)" [ bench "1024B input" $ nf B16.decode (B16.encode (BS.replicate 512 0x00)) , bench "1026B input" $ nf B16.decode (B16.encode (BS.replicate 513 0x00)) , bench "1028B input" $ nf B16.decode (B16.encode (BS.replicate 514 0x00)) @@ -60,7 +64,7 @@ decode_various = bgroup "base16" [ ] encode_various :: Benchmark -encode_various = bgroup "base16" [ +encode_various = bgroup "encode (input size)" [ bench "1024B input" $ nf B16.encode (BS.replicate 1024 0x00) , bench "1023B input" $ nf B16.encode (BS.replicate 1023 0x00) , bench "1022B input" $ nf B16.encode (BS.replicate 1022 0x00) diff --git a/ppad-base16.cabal b/ppad-base16.cabal @@ -101,7 +101,6 @@ benchmark base16-weigh , base16 , base16-bytestring , bytestring - , criterion , ppad-base16 , weigh