Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow report export in library #45

Open
nmattia opened this issue Jan 3, 2018 · 0 comments
Open

Allow report export in library #45

nmattia opened this issue Jan 3, 2018 · 0 comments

Comments

@nmattia
Copy link
Contributor

nmattia commented Jan 3, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant