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

Run benchmarks without source code and with multiple RuntimeMonikers #1721

Closed
djfoxer opened this issue Jun 6, 2021 · 1 comment
Closed

Comments

@djfoxer
Copy link

djfoxer commented Jun 6, 2021

Hi. Is it possible to run benchmark app without source code for multiple runtimes SDK?

I created class with multiple RuntimeMonikers by using SimpleJob attribute (Net48,NetCoreApp31,Net50). When I run my app without source code I get error "BenchmarkDotNet has failed to build the auto-generated boilerplate code.". Ofcourse I can add [InProcess] attribute but it only allows to run benchmark for SDK that exe file was builded (in my case exe file was builded in .NET 5).

Currently I can solve my issue only by building multiple exe files using selected SDK (Net48,NetCoreApp 31,Net50). Could I (somehow) build one exe (without source code) that can test multiple SDK (multiple RuntimeMonikers)?

Btw, Thank you for your great work!

@adamsitnik
Copy link
Member

Hi @djfoxer

Is it possible to run benchmark app without source code for multiple runtimes SDK?

It is not. BenchmarkDotNet generates boilerplate code and we simply have to compile it. As you have noticed InProcessToolchain does not have this requirement, but you need to compile the exes on your own.

Since this is by design and we don't plan to change it, I am going to close the issue.

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

2 participants