diff --git a/core/Benchmarks/Benchmarks.hs b/core/Benchmarks/Benchmarks.hs new file mode 100644 index 0000000..6361812 --- /dev/null +++ b/core/Benchmarks/Benchmarks.hs @@ -0,0 +1,8 @@ +module Main where + +import Connection +import Criterion.Main + +--newPairContext pipe (cParams, sParams) = do + +main = defaultMain [] diff --git a/core/tls.cabal b/core/tls.cabal index e253ffb..94fe7d7 100644 --- a/core/tls.cabal +++ b/core/tls.cabal @@ -101,6 +101,22 @@ Test-Suite test-tls , crypto-random-api ghc-options: -Wall -fno-warn-orphans -fno-warn-missing-signatures +Benchmark bench-tls + hs-source-dirs: Benchmarks Tests + Main-Is: Benchmarks.hs + type: exitcode-stdio-1.0 + Build-depends: base >= 4 && < 5 + , tls + , x509 + , crypto-random-api + , criterion + , cprng-aes + , mtl + , bytestring + , crypto-pubkey + , time + , QuickCheck >= 2 + source-repository head type: git location: git://github.com/vincenthz/hs-tls