I want to measure performance of some methods in my console application using BenchmarkDotNet library.
The question is: should I create a separate project in my solution where I will copy the methods I am interested in measuring and do the measuring there or should I add all the attributes necessary for measuring into the existing project?
What is the convention here?
You can think about it as of adding unit tests for your console app. You don't add the tests to the app itself, but typically create a new project that references (not copies) the logic that you want to test.
In my opinion the best approach would be to: