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