CodeWalker/CodeWalker.Benchmarks/Program.cs

41 lines
944 B
C#
Raw Normal View History

2023-11-12 01:59:17 +08:00
using BenchmarkDotNet.Running;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
2023-11-12 01:59:17 +08:00
using System.Text;
using System.Threading.Tasks;
using static System.Reflection.Metadata.BlobBuilder;
2023-11-12 01:59:17 +08:00
namespace CodeWalker.Benchmarks
{
internal class Program
{
2023-11-12 01:59:17 +08:00
static void Main(string[] args)
{
#if DEBUG
var benchmarks = new Benchmarks();
benchmarks.Setup();
//var benchmarks = new Benchmarks();
//benchmarks.Setup();
//benchmarks.ToUInt64();
//benchmarks.ReadUInt64LittleEndian();
//benchmarks.ReadUInt64BigEndian();
//benchmarks.ToUIntBigEndian();
//benchmarks.HtmlEncode();
//benchmarks.GlobalCleanup();
//ParseBuffer();
#else
2023-11-12 01:59:17 +08:00
BenchmarkRunner.Run<Benchmarks>();
#endif
2023-11-12 01:59:17 +08:00
}
}
}