Benchmarkdotnet: Add a "benchmark" cmd to dotnet

Created on 16 Jun 2016  路  8Comments  路  Source: dotnet/BenchmarkDotNet

So it seems like you can add extra commands to the dotnet tooling, how cool would it be to be able to do dotnet benchmark?

This could then interact with the BenchmarkSwitcher so you can do --class=Benchmarks, --diagnosers=Memory, etc

From my understanding we would have to propose it as a CLI issue, but if we were serious about it, I think someone should do a proof-of-concept first.

Anyone agree? Anyone want to take it on?

CommandLine

Most helpful comment

@AndreyAkinshin, Done! At least a first version of it - let me know if that solves this issue.

The tool supports the following syntax:

dotnet benchmarkdotnet [YourAssemblyFileWithBenchmarks.dll] [BenchmarkDotNet Arguments]

Btw. I'm little bit confused because the build is failing.
I can't imagine how my change could break this test or did I missed something?

All 8 comments

Good idea, but as for me I don't have time now.

I would like to do this.

@CodeTherapist, great!

@AndreyAkinshin, Done! At least a first version of it - let me know if that solves this issue.

The tool supports the following syntax:

dotnet benchmarkdotnet [YourAssemblyFileWithBenchmarks.dll] [BenchmarkDotNet Arguments]

Btw. I'm little bit confused because the build is failing.
I can't imagine how my change could break this test or did I missed something?

@CodeTherapist this particular failure is not your fault, I am going to take a look into that failure to see what is going on

Implemented in #1006

Was this page helpful?
0 / 5 - 0 ratings