BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19042
Intel Core i7-4771 CPU 3.50GHz (Haswell), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=5.0.101
[Host] : .NET Core 5.0.1 (CoreCLR 5.0.120.57516, CoreFX 5.0.120.57516), X64 RyuJIT DEBUG
DefaultJob : .NET Core 5.0.1 (CoreCLR 5.0.120.57516, CoreFX 5.0.120.57516), X64 RyuJIT
Method |
bytes |
Mean |
Error |
StdDev |
Ratio |
RatioSD |
Gen 0 |
Gen 1 |
Gen 2 |
Allocated |
HexToInt64 |
Byte[13] |
19.09 ns |
0.370 ns |
0.346 ns |
1.00 |
0.00 |
- |
- |
- |
- |
HexToInt64Generic |
Byte[13] |
19.04 ns |
0.217 ns |
0.181 ns |
1.00 |
0.02 |
- |
- |
- |
- |
ConvertToInt64 |
Byte[13] |
76.62 ns |
1.287 ns |
1.483 ns |
4.01 |
0.11 |
0.0114 |
- |
- |
48 B |
Int64Parse |
Byte[13] |
64.19 ns |
1.220 ns |
1.141 ns |
3.36 |
0.06 |
0.0114 |
- |
- |
48 B |
Int64ParseAllocFree |
Byte[13] |
41.94 ns |
0.845 ns |
0.791 ns |
2.20 |
0.06 |
- |
- |
- |
- |