mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
20 lines
573 B
C#
20 lines
573 B
C#
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Configs;
|
|
using BenchmarkDotNet.Order;
|
|
using BenchmarkDotNet.Running;
|
|
|
|
namespace CliFx.Benchmarks
|
|
{
|
|
[RankColumn]
|
|
[Orderer(SummaryOrderPolicy.FastestToSlowest)]
|
|
public partial class Benchmarks
|
|
{
|
|
private static readonly string[] Arguments = {"--str", "hello world", "-i", "13", "-b"};
|
|
|
|
public static void Main() => BenchmarkRunner.Run<Benchmarks>(
|
|
DefaultConfig
|
|
.Instance
|
|
.With(ConfigOptions.DisableOptimizationsValidator)
|
|
);
|
|
}
|
|
} |