hyperion icon indicating copy to clipboard operation
hyperion copied to clipboard

Allow report export in library

Open nmattia opened this issue 8 years ago • 0 comments

Right now the hyperion reports from doAnalyze are only available in JSON form (doAnalyze performs the benchmarks, the analysis and the JSON reporting). This means that, currently, the two ways to access those reports from other Haskell code is to either (1) export the reports as JSON and parse them back or (2) copy the logic from doAnalyze. A better way would be to have a function doAnalyze similar to:

doAnalyze
  :: Config -- ^ Hyperion config.
  -> [Benchmark] -- ^ Benchmarks to be run.
  -> IO (HashMap BenchmarkId Report)
doAnalyze = ...

that the user could use directly.

nmattia avatar Jan 03 '18 14:01 nmattia