Efcore: Benchmarks: Rework Benchmark Infra

Created on 13 Jun 2017  路  5Comments  路  Source: dotnet/efcore

BenchmarkAttribute is a FactAttribute but it is used on tests with parameters & alongwith DataAttribute like BenchmarkVariation which are generally used on Theory. As always xUnit does not like our mess and shows errors. 馃槤

This errors/warnings are explicitly disabled in csproj files at present. Rework this infrastructure and remove nowarns.

area-test closed-fixed type-cleanup

Most helpful comment

Even better, lets start using BenchmarkDotNet

All 5 comments

Even better, lets start using BenchmarkDotNet

Includes getting comparison of EF6/1,.1/2.0.

Decided in ad-hoc discussion today that benchmarks on current dev will not be run as xUnit test as a part of build.

  • They will be included in same solution so that any API breaks/usages can be found.
  • It will not run as xUnit test so if there is functional break then it will be not caught during build.cmd run though given coverage in other tests there should be minimal impact. (Also there is a way to run it manually)
  • If any functional breaks happen then we can react to it.

We have moved to use BenchmarkDotNet for our benchmark runs.

Was this page helpful?
0 / 5 - 0 ratings