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

Add more infos to report #1324

Closed
valentinoNguyen opened this issue Dec 8, 2019 · 3 comments
Closed

Add more infos to report #1324

valentinoNguyen opened this issue Dec 8, 2019 · 3 comments

Comments

@valentinoNguyen
Copy link

Is there anyway in BenchmarkDotnet that I can add more information into the final report beside the params and the MEAN ?

What I want to achieve is that I want to measure also how big data that it returns from my test query beside the benchmark.

Thank you in advance :)

@AndreyAkinshin
Copy link
Member

Hello @valentinoNguyen. Could you please provide a more specific example of what you want?

@valentinoNguyen
Copy link
Author

Hi @AndreyAkinshin ,
I have a set of benchmark testcase with the input is a SQL query statement, the test will run this query against our server then return some data.

What I have now is the benchmark result export as csv and html format. I just wonder if I can add 1 more column on the report to tell how big data is returned.

@adamsitnik
Copy link
Member

Hello @valentinoNguyen

BenchmarkDotNet runs every benchmark in a stand-alone process. This is why if you store something in a static field etc inside the benchmark you can not access it in a custom column of the host process.

Passing all kinds of results from one process to another is non trivial, we have an ongoing discussion about how to solve this problem in #784

Possible workarounds as of today are:

  • use InProcessToolchain
  • save the data to a file in [GlobalCleanup] method, read it in the custom column

I am closing this issue since it's a duplicate of #784

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

No branches or pull requests

3 participants