dotnet/BenchmarkDotNet

Ability to configure benchmark class name in outputs

オープン

#1,447 opened on 2020/05/02

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)C# (1,063 件のフォーク)batch import
Hacktoberfesthelp wantedup-for-grabs

Repository metrics

Stars
 (11,480 個のスター)
PR merge metrics
 (PR metrics pending)

説明

An individual benchmark method's name can be overridden for output purposes via the Description property on BenchmarkAttribute (see #1243 for a related issue on this). However, there doesn't seem to be a way to do the same for the entire class.

My use case: we have a superclass of benchmarks being extended for different databases, so an abstract OpenConnectionBenchmarks class gets extended by SqliteOpenConnectionBenchmarks. However, in the outputs (CSV going into a database) it's desirable to have OpenConnectionBenchmarks, as the database is tracked elsewhere.

コントリビューターガイド