script

Pure Haskell (Bitcoin) Script and utilities.
git clone git://git.ppad.tech/script.git
Log | Files | Refs | LICENSE

commit 4feb43a1b29899ec762e33772c698a4992e89727
parent 62193838c8238bb5aa678c43978163b91037963c
Author: Jared Tobin <jared@jtobin.io>
Date:   Sat, 18 Jan 2025 17:26:22 +0400

bench: skeleton

Diffstat:
Abench/Main.hs | 4++++
Abench/Weight.hs | 4++++
Mppad-script.cabal | 32+++++++++++++++++++++++++++++++-
3 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/bench/Main.hs b/bench/Main.hs @@ -0,0 +1,4 @@ +module Main where + +main :: IO () +main = pure () diff --git a/bench/Weight.hs b/bench/Weight.hs @@ -0,0 +1,4 @@ +module Main where + +main :: IO () +main = pure () diff --git a/ppad-script.cabal b/ppad-script.cabal @@ -27,13 +27,13 @@ library build-depends: base >= 4.9 && < 5 , bytestring >= 0.9 && < 0.13 + , primitive >= 0.8 && < 0.10 , ppad-base16 >= 0.1 && < 0.2 , ppad-base58 >= 0.1 && < 0.2 , ppad-bech32 >= 0.2 && < 0.3 , ppad-ripemd160 >= 0.1 && < 0.2 , ppad-secp256k1 >= 0.2.1 && < 0.3 , ppad-sha256 >= 0.2 && < 0.3 - , primitive >= 0.8 && < 0.10 test-suite script-tests type: exitcode-stdio-1.0 @@ -58,3 +58,33 @@ test-suite script-tests , tasty-hunit , tasty-quickcheck +benchmark script-bench + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: bench + main-is: Main.hs + + ghc-options: + -rtsopts -O2 -Wall + + build-depends: + base + , bytestring + , criterion + , ppad-script + +benchmark script-weigh + type: exitcode-stdio-1.0 + default-language: Haskell2010 + hs-source-dirs: bench + main-is: Weight.hs + + ghc-options: + -rtsopts -O2 -Wall + + build-depends: + base + , bytestring + , ppad-script + , weigh +