mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
19 lines
527 B
C#
19 lines
527 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.WithOptions(ConfigOptions.DisableOptimizationsValidator)
|
|
);
|
|
}
|