List.Int32.ListInt32WhereSelect.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32WhereSelect

Source

ListInt32WhereSelect.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.0100108.29 ns0.766 ns0.640 ns108.20 nsbaseline--NA
ForeachLoop.NET 8.010079.40 ns1.433 ns1.408 ns78.96 ns1.36x faster0.03x--NA
Linq.NET 8.0100297.60 ns5.784 ns5.128 ns295.82 ns2.74x slower0.05x0.0725152 BNA
LinqFaster.NET 8.0100323.87 ns6.488 ns7.968 ns320.98 ns3.01x slower0.09x0.3095648 BNA
LinqFasterer.NET 8.0100322.73 ns5.175 ns4.588 ns321.32 ns2.98x slower0.05x0.4473936 BNA
LinqAF.NET 8.0100205.74 ns4.024 ns6.265 ns203.44 ns1.92x slower0.07x--NA
StructLinq.NET 8.0100200.84 ns2.413 ns2.370 ns200.06 ns1.85x slower0.02x0.030564 BNA
StructLinq_ValueDelegate.NET 8.010094.48 ns0.524 ns0.409 ns94.67 ns1.15x faster0.01x--NA
Hyperlinq.NET 8.0100136.94 ns2.446 ns4.474 ns135.12 ns1.27x slower0.05x--NA
Hyperlinq_ValueDelegate.NET 8.010079.17 ns0.816 ns0.682 ns79.05 ns1.37x faster0.01x--NA
Faslinq.NET 8.0100345.48 ns2.985 ns3.317 ns344.77 ns3.20x slower0.05x0.3095648 BNA
ForLoop.NET 9.0100116.80 ns1.809 ns1.603 ns116.72 nsbaseline--NA
ForeachLoop.NET 9.010079.68 ns1.559 ns1.382 ns79.13 ns1.47x faster0.03x--NA
Linq.NET 9.0100307.97 ns6.030 ns6.944 ns305.14 ns2.65x slower0.07x0.0725152 BNA
LinqFaster.NET 9.0100380.36 ns6.480 ns7.203 ns378.15 ns3.26x slower0.08x0.3095648 BNA
LinqFasterer.NET 9.0100385.15 ns7.624 ns13.748 ns378.39 ns3.32x slower0.16x0.4473936 BNA
LinqAF.NET 9.0100183.89 ns3.538 ns3.933 ns182.58 ns1.58x slower0.05x--NA
StructLinq.NET 9.0100193.12 ns3.905 ns9.796 ns188.40 ns1.62x slower0.07x0.030564 BNA
StructLinq_ValueDelegate.NET 9.0100105.52 ns1.391 ns1.086 ns105.12 ns1.11x faster0.02x--NA
Hyperlinq.NET 9.0100143.95 ns1.468 ns1.632 ns143.51 ns1.23x slower0.02x--NA
Hyperlinq_ValueDelegate.NET 9.010088.86 ns1.820 ns2.096 ns88.06 ns1.32x faster0.04x--NA
Faslinq.NET 9.0100448.04 ns8.190 ns16.545 ns441.38 ns3.85x slower0.21x0.3095648 BNA