Safe Haskell | None |
---|---|
Language | Haskell2010 |
Facilities for handling Futhark benchmark results. A Futhark benchmark program is just like a Futhark test program.
Synopsis
- newtype RunResult = RunResult {}
- data DataResult = DataResult String (Either Text Result)
- data BenchResult = BenchResult FilePath [DataResult]
- data Result = Result {}
- encodeBenchResults :: [BenchResult] -> ByteString
- decodeBenchResults :: ByteString -> Either String [BenchResult]
- binaryName :: FilePath -> FilePath
- benchmarkDataset :: Server -> RunOptions -> FutharkExe -> FilePath -> Text -> Values -> Maybe Success -> FilePath -> IO (Either Text ([RunResult], Text))
- data RunOptions = RunOptions {
- runRuns :: Int
- runTimeout :: Int
- runVerbose :: Int
- runResultAction :: Maybe (Int -> IO ())
- prepareBenchmarkProgram :: MonadIO m => Maybe Int -> CompileOptions -> FilePath -> [InputOutputs] -> m (Either (String, Maybe ByteString) ())
- data CompileOptions = CompileOptions {
- compFuthark :: String
- compBackend :: String
- compOptions :: [String]
Documentation
The runtime of a single succesful run.
data DataResult Source #
The results for a single named dataset is either an error message, or runtime measurements, the number of bytes used, and the stderr that was produced.
Instances
Eq DataResult Source # | |
Defined in Futhark.Bench (==) :: DataResult -> DataResult -> Bool # (/=) :: DataResult -> DataResult -> Bool # | |
Show DataResult Source # | |
Defined in Futhark.Bench showsPrec :: Int -> DataResult -> ShowS # show :: DataResult -> String # showList :: [DataResult] -> ShowS # |
data BenchResult Source #
The results for all datasets for some benchmark program.
Instances
Eq BenchResult Source # | |
Defined in Futhark.Bench (==) :: BenchResult -> BenchResult -> Bool # (/=) :: BenchResult -> BenchResult -> Bool # | |
Show BenchResult Source # | |
Defined in Futhark.Bench showsPrec :: Int -> BenchResult -> ShowS # show :: BenchResult -> String # showList :: [BenchResult] -> ShowS # |
encodeBenchResults :: [BenchResult] -> ByteString Source #
Transform benchmark results to a JSON bytestring.
decodeBenchResults :: ByteString -> Either String [BenchResult] Source #
Decode benchmark results from a JSON bytestring.
binaryName :: FilePath -> FilePath Source #
The name we use for compiled programs.
benchmarkDataset :: Server -> RunOptions -> FutharkExe -> FilePath -> Text -> Values -> Maybe Success -> FilePath -> IO (Either Text ([RunResult], Text)) Source #
Run the benchmark program on the indicated dataset.
data RunOptions Source #
How to run a benchmark.
RunOptions | |
|
prepareBenchmarkProgram :: MonadIO m => Maybe Int -> CompileOptions -> FilePath -> [InputOutputs] -> m (Either (String, Maybe ByteString) ()) Source #
Compile and produce reference datasets.
data CompileOptions Source #
How to compile a benchmark.
CompileOptions | |
|