MiniExcel/benchmarks/MiniExcel.Benchmarks/Program.cs

24 lines
533 B
C#
Raw Normal View History

using System;
2021-03-30 09:55:01 +08:00
using System.ComponentModel;
using System.Diagnostics;
2021-03-30 09:55:01 +08:00
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
using MiniExcelLibs;
2021-03-30 09:55:01 +08:00
using OfficeOpenXml;
namespace MiniExcelLibs.Benchmarks
{
class Program
{
static void Main(string[] args)
{
2021-07-13 08:29:47 +08:00
#if DEBUG
new XlsxBenchmark().Epplus_QueryFirst_Test();
2021-03-30 09:55:01 +08:00
#else
2021-07-13 08:29:47 +08:00
BenchmarkSwitcher.FromTypes(new[]{typeof(XlsxBenchmark)}).Run(args, new Config());
2021-03-30 09:55:01 +08:00
#endif
Console.Read();
}
}
}