Intersect.md

November 29, 2022 · View on GitHub

Intersect

Source

Intersect.cs

Results:


BenchmarkDotNet=v0.13.2, OS=Windows 11 (10.0.22621.819)
Intel Core i7-8750H CPU 2.20GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
.NET SDK=7.0.100
  [Host]     : .NET 7.0.0 (7.0.22.51805), X64 RyuJIT AVX2
  DefaultJob : .NET 7.0.0 (7.0.22.51805), X64 RyuJIT AVX2


MethodMeanErrorStdDevRatioGen0Gen1AllocatedAlloc Ratio
Linq96.15 μs0.351 μs0.311 μs1.0019.77544.882893704 B1.000
StructLinq95.73 μs0.423 μs0.354 μs1.00--64 B0.001
StructLinqZeroAlloc93.66 μs0.238 μs0.211 μs0.97---0.000
StructLinqZeroAllocAndComparer72.41 μs0.322 μs0.301 μs0.75---0.000