I intend to use BenchmarkDotNet to test some methods inside various project.
As it may be as easy as adding the Benchmark
attribute to the methods, I have considerable doubt about using it in the project I work on.
The project is consisting of 2 parts:
- native core
- .Net features
The native part initializes the .Net part and calls its methods via interop.
So using a test project and adding references to the .Net projects and starting the benchmark application will not work as the native code should be started first.
Any idea, if I can somehow skip the native part and make BenchmarkDotNet test only the methods? Or should I look for another benchmarking approach?