mirror of
https://github.com/Tyrrrz/CliFx.git
synced 2025-10-25 15:19:17 +00:00
20 lines
480 B
C#
20 lines
480 B
C#
using BenchmarkDotNet.Attributes;
|
|
using Cocona;
|
|
|
|
namespace CliFx.Benchmarks;
|
|
|
|
public partial class Benchmarks
|
|
{
|
|
public class CoconaCommand
|
|
{
|
|
public void Execute(
|
|
[Option("str", ['s'])] string? strOption,
|
|
[Option("int", ['i'])] int intOption,
|
|
[Option("bool", ['b'])] bool boolOption
|
|
) { }
|
|
}
|
|
|
|
[Benchmark(Description = "Cocona")]
|
|
public void ExecuteWithCocona() => CoconaApp.Run<CoconaCommand>(Arguments);
|
|
}
|