-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathProgram.cs
More file actions
18 lines (15 loc) · 718 Bytes
/
Program.cs
File metadata and controls
18 lines (15 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Diagnostics;
using System.Reflection;
using BenchmarkDotNet.Running;
using EnumsNET.Tests.Benchmarks;
namespace EnumsNET.PerfTestConsole;
static class Program
{
static void Main()
{
var version = FileVersionInfo.GetVersionInfo(typeof(Enums).GetTypeInfo().Assembly.Location).FileVersion;
Console.WriteLine("Enums.NET Version: " + version);
new BenchmarkSwitcher(new[] { typeof(HasFlagBenchmarks), typeof(GetHashCodeBenchmarks), typeof(IsDefinedBenchmarks), typeof(ToStringBenchmarks), typeof(ParseNamesBenchmarks), typeof(ParseValuesBenchmarks), typeof(ParseFlagsBenchmarks), typeof(DictionaryBenchmarks), typeof(InRangeBenchmarks) }).Run(["*"]);
}
}