maybench-0.1: Automated benchmarking tool
Test.Maybench
data Benchmark Source
Constructors
Fields
run :: MonadIO m => CommandModifier m -> m (String, String)Source
runC :: MonadIO m => Command -> m (String, String)Source
runProcessWithInput :: FilePath -> [String] -> String -> IO (String, String)Source
benchSource
Arguments
setup
action
cleanup
iterations
benchSimple :: IO a -> Int -> IO BenchmarkSource
timeProgram :: String -> String -> String -> IO (String, TimeDiff)Source
averageTimeDiffs :: [TimeDiff] -> TimeDiffSource
averageTime :: String -> String -> String -> Int -> IO (String, TimeDiff)Source
showTimeDiff :: (String, TimeDiff) -> StringSource
printTimeDiff :: (String, TimeDiff) -> IO ()Source
hour :: IntSource
day :: IntSource
month :: IntSource
year :: IntSource
minute :: IntSource
timeDiffToSeconds :: TimeDiff -> IntSource
secondsToTimeDiff :: Int -> TimeDiffSource
compareTimes :: (String, TimeDiff) -> (String, TimeDiff) -> Maybe StringSource