-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#124409 (comment) command:
Original command:
-amd -intel -arm
using System.IO.Hashing;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Bench).Assembly).Run(args);
[MemoryDiagnoser]
public class Bench
{
private byte[] _bytes;
[Params(10, 100, 1000, 10_000, 100_000)]
public int Size { get; set; }
[GlobalSetup]
public void Setup()
{
_bytes = new byte[Size];
for (int i = 0; i < Size; i++) _bytes[i] = (byte)('a' + (i % 26));
}
[Benchmark]
public uint Adler() => Adler32.HashToUInt32(_bytes);
}
(EgorBot will reply in this issue)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels