Array.Int32.ArrayInt32WhereSelect.md

February 14, 2024 ยท View on GitHub

Array.Int32.ArrayInt32WhereSelect

Source

ArrayInt32WhereSelect.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.010066.54 ns0.982 ns0.870 ns66.17 nsbaseline--NA
ForeachLoop.NET 8.010067.47 ns0.636 ns0.497 ns67.41 ns1.02x slower0.01x--NA
Linq.NET 8.0100222.99 ns1.089 ns0.909 ns223.04 ns3.36x slower0.04x0.0496104 BNA
LinqFaster.NET 8.0100190.61 ns2.924 ns3.591 ns189.13 ns2.87x slower0.06x0.3173664 BNA
LinqFasterer.NET 8.0100526.11 ns2.865 ns2.237 ns525.33 ns7.92x slower0.09x0.4129864 BNA
LinqAF.NET 8.0100178.47 ns3.525 ns5.167 ns176.12 ns2.68x slower0.09x--NA
StructLinq.NET 8.0100172.70 ns3.105 ns2.592 ns171.49 ns2.60x slower0.04x0.030564 BNA
StructLinq_ValueDelegate.NET 8.010088.08 ns1.488 ns2.567 ns87.19 ns1.33x slower0.06x--NA
Hyperlinq.NET 8.0100155.87 ns3.109 ns4.458 ns153.83 ns2.34x slower0.06x--NA
Hyperlinq_ValueDelegate.NET 8.010077.92 ns1.579 ns2.161 ns77.12 ns1.17x slower0.03x--NA
Faslinq.NET 8.0100244.73 ns4.842 ns9.890 ns239.15 ns3.73x slower0.20x0.2027424 BNA
ForLoop.NET 9.010066.70 ns0.912 ns1.154 ns66.28 nsbaseline--NA
ForeachLoop.NET 9.010066.20 ns1.054 ns0.880 ns66.02 ns1.01x faster0.02x--NA
Linq.NET 9.0100237.61 ns2.099 ns1.861 ns237.25 ns3.55x slower0.08x0.0496104 BNA
LinqFaster.NET 9.0100219.67 ns4.263 ns9.268 ns214.88 ns3.33x slower0.18x0.3173664 BNA
LinqFasterer.NET 9.0100518.69 ns4.883 ns4.078 ns517.27 ns7.73x slower0.11x0.4129864 BNA
LinqAF.NET 9.0100159.66 ns1.613 ns1.347 ns159.47 ns2.38x slower0.04x--NA
StructLinq.NET 9.0100169.53 ns1.914 ns2.204 ns169.14 ns2.54x slower0.06x0.030564 BNA
StructLinq_ValueDelegate.NET 9.010083.36 ns1.099 ns0.858 ns83.13 ns1.24x slower0.03x--NA
Hyperlinq.NET 9.0100113.91 ns0.644 ns0.538 ns113.95 ns1.70x slower0.04x--NA
Hyperlinq_ValueDelegate.NET 9.010088.90 ns1.738 ns1.860 ns87.78 ns1.33x slower0.04x--NA
Faslinq.NET 9.0100209.17 ns3.158 ns2.466 ns208.23 ns3.11x slower0.06x0.2027424 BNA