mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-04-01 09:36:14 +00:00
27 lines
643 B
Haskell
27 lines
643 B
Haskell
{- Benchmark harness
|
|
|
|
Run with: cabal bench -O2 simplexmq-bench
|
|
|
|
List cases: cabal bench -O2 simplexmq-bench --benchmark-options "-l"
|
|
Pick one or group: cabal bench -O2 simplexmq-bench --benchmark-options "-p TRcvQueues.getDelSessQueues"
|
|
-}
|
|
|
|
module Main where
|
|
|
|
import Bench.Base64
|
|
import Bench.BsConcat
|
|
import Bench.Compression
|
|
import Bench.SNTRUP761
|
|
import Bench.TRcvQueues
|
|
import Test.Tasty.Bench
|
|
|
|
main :: IO ()
|
|
main =
|
|
defaultMain
|
|
[ bgroup "TRcvQueues" benchTRcvQueues,
|
|
bgroup "SNTRUP761" benchSNTRUP761,
|
|
bgroup "Compression" benchCompression,
|
|
bgroup "BsConcat" benchBsConcat,
|
|
bgroup "Base64" benchBase64
|
|
]
|