(https://benchmarkdotnet.org/)
Is it possible to skip a single benchmark section for a specific runtime?
For example i want to test several functions for 4.7.2 and Core 3.1, but one should only be benched on Core31
[Benchmark]
public void CoreOnly()
{
#if NETCOREAPP3_1
//some stuff i only want to test with 3.1
#endif
}
[Benchmark]
public void General()
{
//some stuff i want to test on all runtimes
}
Thats how i have done this until now. Is there a better way?