List.Int32.ListInt32Contains.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32Contains

Source

ListInt32Contains.cs

References:

Results:


BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.3996/22H2/2022Update)
Intel Core i7-7567U CPU 3.50GHz (Kaby Lake), 1 CPU, 4 logical and 2 physical cores
.NET SDK 9.0.100-preview.1.24101.2
  [Host]     : .NET 6.0.26 (6.0.2623.60508), X64 RyuJIT AVX2
  Job-THTHEP : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2
  Job-OQLBIM : .NET 9.0.0 (9.0.24.8009), X64 RyuJIT AVX2


MethodRuntimeCountMeanErrorStdDevMedianRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.010084.57 ns1.731 ns2.189 ns83.47 nsbaseline--NA
ForeachLoop.NET 8.010072.50 ns0.357 ns0.279 ns72.51 ns1.16x faster0.03x--NA
List_Exists.NET 8.0100120.11 ns2.419 ns5.310 ns117.58 ns1.44x slower0.08x0.030564 BNA
Linq.NET 8.010012.93 ns0.275 ns0.270 ns12.85 ns6.55x faster0.17x--NA
LinqFaster.NET 8.010013.63 ns0.217 ns0.181 ns13.56 ns6.19x faster0.19x--NA
LinqFasterer.NET 8.010044.22 ns0.656 ns0.729 ns44.37 ns1.92x faster0.06x0.2027424 BNA
LinqAF.NET 8.010013.80 ns0.268 ns0.287 ns13.71 ns6.15x faster0.24x--NA
StructLinq.NET 8.010057.09 ns0.257 ns0.214 ns57.03 ns1.48x faster0.04x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010059.65 ns0.426 ns0.333 ns59.58 ns1.41x faster0.04x--NA
Hyperlinq.NET 8.010019.08 ns0.376 ns0.476 ns18.88 ns4.43x faster0.13x0.015332 BNA
Hyperlinq_SIMD.NET 8.010013.24 ns0.140 ns0.109 ns13.19 ns6.36x faster0.18x--NA
Faslinq.NET 8.0100142.14 ns1.944 ns2.239 ns141.09 ns1.68x slower0.05x0.030564 BNA
ForLoop.NET 9.0100136.66 ns2.748 ns5.024 ns134.03 nsbaseline--NA
ForeachLoop.NET 9.010072.29 ns0.528 ns0.441 ns72.22 ns1.91x faster0.07x--NA
List_Exists.NET 9.0100106.27 ns2.126 ns2.530 ns105.49 ns1.29x faster0.05x0.030564 BNA
Linq.NET 9.010012.20 ns0.117 ns0.098 ns12.15 ns11.35x faster0.49x--NA
LinqFaster.NET 9.010013.38 ns0.148 ns0.116 ns13.34 ns10.38x faster0.47x--NA
LinqFasterer.NET 9.010047.66 ns0.769 ns0.682 ns47.43 ns2.90x faster0.12x0.2027424 BNA
LinqAF.NET 9.010013.85 ns0.117 ns0.104 ns13.82 ns9.97x faster0.39x--NA
StructLinq.NET 9.010070.49 ns0.908 ns0.758 ns70.10 ns1.96x faster0.08x0.015332 BNA
StructLinq_ValueDelegate.NET 9.0100112.94 ns2.054 ns3.011 ns111.55 ns1.22x faster0.06x--NA
Hyperlinq.NET 9.010018.98 ns0.413 ns0.492 ns18.80 ns7.21x faster0.35x0.015332 BNA
Hyperlinq_SIMD.NET 9.010018.29 ns0.309 ns0.390 ns18.17 ns7.48x faster0.31x--NA
Faslinq.NET 9.0100120.02 ns2.410 ns2.679 ns118.91 ns1.14x faster0.03x0.030564 BNA