You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
using System.Collections;
using BenchmarkDotNet.Attributes;
public class Benchmarks
{
bool[] buffer = new bool[1000];
[Benchmark]
[ArgumentsSource(nameof(TestData))]
public void BitArrayCopyTo(BitArray bitArray) => bitArray.CopyTo(buffer, 0);
public IEnumerable<BitArray> TestData()
{
yield return new BitArray(31);
yield return new BitArray(32);
yield return new BitArray(33);
yield return new BitArray(64);
yield return new BitArray(127);
yield return new BitArray(128);
yield return new BitArray(129);
yield return new BitArray(256);
}
}