Skip to content

BenchmarkDotNet usage #1179

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

Open
kolpav opened this issue Mar 22, 2021 · 2 comments
Open

BenchmarkDotNet usage #1179

kolpav opened this issue Mar 22, 2021 · 2 comments
Labels
Area-Packages and Extensions Related to acquiring and using packages and extensions enhancement New feature or request

Comments

@kolpav
Copy link

kolpav commented Mar 22, 2021

Is your feature request related to a problem? Please describe.

I can't use BenchmarkDotNet in notebook because it needs release build to function properly.

Assembly BenchmarkDotNet.Samples which defines benchmarks references non-optimized BenchmarkDotNet
        If you own this dependency, please, build it in RELEASE.
        If you don't, you can create custom config with DontFailOnError to disable our custom policy and allow this b
Assembly BenchmarkDotNet.Samples which defines benchmarks is non-optimized
Benchmark was built without optimization enabled (most probably a DEBUG configuration). Please, build it in RELEASE.

Describe the solution you'd like

I would like to be able to use BenchmarkDotNet in notebooks. It would be incredible because sometimes I want to quickly benchmark piece of code but I am too lazy to create full featured benchmark. Notebooks significantly shorten the feedback loop with ability to draw graphs and so on.

Its either something .NET Interactive doesn't support yet or I don't know how to configure any help is appreciated.

@jonsequitur
Copy link
Contributor

I've been experimenting with this a bit myself. So far I'm really just driving the release build from a PowerShell cell but ideally you could benchmark the code submission directly. When I tried experimenting with that, I hit a blocker pretty quickly that I've just opened an issue for: dotnet/BenchmarkDotNet#1677.

@adamsitnik

@jonsequitur jonsequitur added Area-Packages and Extensions Related to acquiring and using packages and extensions enhancement New feature or request labels Mar 24, 2021
@kolpav
Copy link
Author

kolpav commented Mar 25, 2021

@jonsequitur Thank you for taking a look I am going to look forward for any development around this issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Packages and Extensions Related to acquiring and using packages and extensions enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants