dotnet/BenchmarkDotNet

Ability to configure benchmark class name in outputs

Open

#1,447 创建于 2020年5月2日

在 GitHub 查看
 (6 评论) (1 反应) (0 负责人)C# (1,054 fork)batch import
Hacktoberfesthelp wantedup-for-grabs

仓库指标

Star
 (11,415 star)
PR 合并指标
 (平均合并 5天 9小时) (30 天内合并 20 个 PR)

描述

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.

贡献者指南