List.Int32.ListInt32Select.md

February 14, 2024 ยท View on GitHub

List.Int32.ListInt32Select

Source

ListInt32Select.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.010070.29 ns0.307 ns0.256 ns70.27 nsbaseline--NA
ForeachLoop.NET 8.0100111.63 ns2.261 ns4.302 ns109.36 ns1.58x slower0.06x--NA
Linq.NET 8.0100296.67 ns4.478 ns3.970 ns295.57 ns4.22x slower0.06x0.034372 BNA
LinqFaster.NET 8.0100298.78 ns4.838 ns6.290 ns297.36 ns4.27x slower0.11x0.2179456 BNA
LinqFasterer.NET 8.0100286.08 ns2.137 ns1.785 ns285.57 ns4.07x slower0.03x0.4206880 BNA
LinqAF.NET 8.0100217.75 ns4.315 ns3.603 ns216.33 ns3.10x slower0.05x--NA
StructLinq.NET 8.010094.99 ns1.933 ns3.386 ns93.62 ns1.35x slower0.05x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010059.96 ns1.176 ns1.155 ns59.60 ns1.17x faster0.03x--NA
Hyperlinq.NET 8.0100136.30 ns0.606 ns0.473 ns136.23 ns1.94x slower0.01x--NA
Hyperlinq_ValueDelegate.NET 8.010048.94 ns0.563 ns0.439 ns48.86 ns1.44x faster0.02x--NA
Faslinq.NET 8.0100416.89 ns8.326 ns18.623 ns410.16 ns5.94x slower0.29x0.56601184 BNA
ForLoop.NET 9.010069.29 ns0.618 ns0.548 ns69.15 nsbaseline--NA
ForeachLoop.NET 9.0100108.44 ns0.647 ns0.505 ns108.15 ns1.56x slower0.01x--NA
Linq.NET 9.0100278.79 ns5.032 ns8.680 ns275.49 ns4.03x slower0.15x0.034372 BNA
LinqFaster.NET 9.0100436.59 ns5.595 ns4.672 ns434.44 ns6.30x slower0.08x0.2174456 BNA
LinqFasterer.NET 9.0100344.22 ns5.463 ns4.562 ns344.08 ns4.97x slower0.07x0.4206880 BNA
LinqAF.NET 9.0100195.41 ns3.454 ns7.133 ns191.78 ns2.83x slower0.11x--NA
StructLinq.NET 9.0100115.08 ns1.153 ns1.233 ns114.67 ns1.66x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010059.03 ns0.401 ns0.356 ns59.02 ns1.17x faster0.01x--NA
Hyperlinq.NET 9.0100113.76 ns2.286 ns2.973 ns112.47 ns1.64x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 9.010057.19 ns0.484 ns0.404 ns57.06 ns1.21x faster0.01x--NA
Faslinq.NET 9.0100454.29 ns7.575 ns6.715 ns452.19 ns6.56x slower0.09x0.56551184 BNA