Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cryptol.Utils.Benchmark
Description
Simple benchmarking of IO functions.
Synopsis
- data BenchmarkStats = BenchmarkStats {
- benchAvgTime :: !Double
- benchAvgCpuTime :: !Double
- benchAvgCycles :: !Int64
- benchmark :: Double -> (a -> IO b) -> a -> IO BenchmarkStats
- secs :: Double -> String
Documentation
data BenchmarkStats Source #
Statistics returned by benchmark
.
This is extremely crude compared to the full analysis that criterion can do, but is enough for now.
Constructors
BenchmarkStats | |
Fields
|
Instances
Show BenchmarkStats Source # | |
Defined in Cryptol.Utils.Benchmark Methods showsPrec :: Int -> BenchmarkStats -> ShowS # show :: BenchmarkStats -> String # showList :: [BenchmarkStats] -> ShowS # |