base64

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

commit 3bf18d0c0c07e0f14f5e97e3b3201e79651ca859
parent 64f88b77ced149213b05f5dc7eb57e437de7bf41
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 'base64' reference package.  Also drops the unused criterion
dependency from the weigh suite.

Diffstat:
Mbench/Main.hs | 8++++++--
Mppad-base64.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 "base64" [ +decode_various = bgroup "decode (input size)" [ bench "1024B input" $ nf B64.decode (B64.encode (BS.replicate 768 0x00)) , bench "1028B input" $ nf B64.decode (B64.encode (BS.replicate 771 0x00)) , bench "1032B input" $ nf B64.decode (B64.encode (BS.replicate 774 0x00)) @@ -59,7 +63,7 @@ decode_various = bgroup "base64" [ ] encode_various :: Benchmark -encode_various = bgroup "base64" [ +encode_various = bgroup "encode (input size)" [ bench "1024B input" $ nf B64.encode (BS.replicate 1024 0x00) , bench "1023B input" $ nf B64.encode (BS.replicate 1023 0x00) , bench "1022B input" $ nf B64.encode (BS.replicate 1022 0x00) diff --git a/ppad-base64.cabal b/ppad-base64.cabal @@ -101,6 +101,5 @@ benchmark base64-weigh , base64 , base64-bytestring , bytestring - , criterion , ppad-base64 , weigh