experiments/csharp/E003-CharBenchmarks/Program.cs

21 lines
329 B
C#
Raw Normal View History

2024-05-04 21:16:52 +01:00
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkRunner.Run<CharBenchmark>();
[SimpleJob, MemoryDiagnoser(false)]
public class CharBenchmark
{
[Benchmark]
public char TestA()
{
return 'a';
}
[Benchmark]
public char TestUtf16()
{
return '\u0369';
}
}