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

make it possible to specify runtime via --runtimes console argument #7

Merged
merged 1 commit into from
Jul 2, 2019

Conversation

adamsitnik
Copy link
Contributor

The best way of testing the benchmarks for multiple runtimes is to pass target framework monikers via --runtimes console argument.

dotnet run -c Release -f netcoreapp2.0 --filter * --runtimes net471 netcoreapp2.0

Please keep in mind that:

  • you should never try to run the benchmarks in Debug. To run benchmarks in Release, you need to pass -c Release to dotnet run command
  • .NET Standard is an abstraction, you can't test the performance of .NET Standard. You can test the performance of runtimes which implement it
  • Full .NET Framework always runs the code using the latest .NET Framework installed on a given machine. If you specify --runtimes net471 net472 it will run the code for the same Runtime anyway.
  • you need to specify filter via --filter argument. It's a glob expression applied to full benchmark names: namespace.typeName.methodName. Run dotnet run -- --help to get help and some examples to learn more

@AlenToma AlenToma merged commit b25e6b7 into AlenToma:master Jul 2, 2019
@adamsitnik adamsitnik deleted the benchmarkRuntimes branch July 2, 2019 12:41
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

Successfully merging this pull request may close these issues.

2 participants