CurryInfo: benchmark-papers-3.0.0 / Test.Benchmark.benchCommandWithLimit

definition:
 
benchCommandWithLimit :: String -> Float -> Benchmark (Maybe CmdResult)
benchCommandWithLimit cmd tlimit =
  mapBench (\cd -> if exitStatus cd == 0 then Just cd else Nothing)
           (benchCommand $ "/usr/bin/timeout " ++ show tlimit ++ "s " ++ cmd)
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Benchmark the execution of a shell command where
a maximum time limit for the execution (in seconds) is given.
Returns `Nothing`, if the time limit is reached or the command terminated
with a non-zero exit code, or `Just` the benchmark results.
failfree:
 <FAILING>
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_,_) |-> _}
name:
 benchCommandWithLimit
precedence:
 no precedence defined
result-values:
 _
signature:
 String -> Prelude.Float -> Benchmark (Prelude.Maybe CmdResult)
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term