List.Int32.ListInt32Where.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32Where

Source

ListInt32Where.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.010071.98 ns0.829 ns0.692 ns71.76 nsbaseline--NA
ForeachLoop.NET 8.0100117.82 ns2.394 ns5.354 ns114.99 ns1.65x slower0.07x--NA
Linq.NET 8.0100262.81 ns5.153 ns6.328 ns260.79 ns3.65x slower0.11x0.034372 BNA
LinqFaster.NET 8.0100310.91 ns6.229 ns13.931 ns304.23 ns4.42x slower0.23x0.3095648 BNA
LinqFasterer.NET 8.0100265.05 ns3.529 ns3.128 ns263.85 ns3.68x slower0.05x0.3328696 BNA
LinqAF.NET 8.0100147.65 ns1.476 ns1.308 ns147.16 ns2.05x slower0.02x--NA
StructLinq.NET 8.0100123.24 ns0.845 ns0.705 ns123.07 ns1.71x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010065.79 ns0.476 ns0.445 ns65.61 ns1.09x faster0.02x--NA
Hyperlinq.NET 8.0100110.41 ns2.251 ns4.059 ns108.76 ns1.54x slower0.05x--NA
Hyperlinq_ValueDelegate.NET 8.010086.94 ns1.265 ns1.506 ns86.65 ns1.20x slower0.02x--NA
Faslinq.NET 8.0100386.02 ns5.421 ns6.243 ns384.17 ns5.38x slower0.12x0.3095648 BNA
ForLoop.NET 9.010084.37 ns0.547 ns0.427 ns84.23 nsbaseline--NA
ForeachLoop.NET 9.0100113.60 ns0.791 ns0.660 ns113.32 ns1.35x slower0.01x--NA
Linq.NET 9.0100255.11 ns3.910 ns4.655 ns253.32 ns3.01x slower0.05x0.034372 BNA
LinqFaster.NET 9.0100310.21 ns6.247 ns10.607 ns305.35 ns3.70x slower0.14x0.3095648 BNA
LinqFasterer.NET 9.0100258.07 ns3.062 ns2.864 ns257.42 ns3.06x slower0.04x0.3328696 BNA
LinqAF.NET 9.0100199.80 ns3.017 ns3.591 ns198.80 ns2.38x slower0.06x--NA
StructLinq.NET 9.0100107.66 ns1.000 ns0.835 ns107.54 ns1.28x slower0.01x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010061.28 ns0.641 ns0.600 ns61.03 ns1.37x faster0.02x--NA
Hyperlinq.NET 9.010095.45 ns1.433 ns1.593 ns94.94 ns1.13x slower0.02x--NA
Hyperlinq_ValueDelegate.NET 9.010056.12 ns0.855 ns0.839 ns55.86 ns1.50x faster0.03x--NA
Faslinq.NET 9.0100369.06 ns7.225 ns7.730 ns365.08 ns4.37x slower0.10x0.3095648 BNA