Array.ValueType.ArrayValueTypeWhereSelect.md

February 14, 2024 ยท View on GitHub

Array.ValueType.ArrayValueTypeWhereSelect

Source

ArrayValueTypeWhereSelect.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.0100109.81 ns2.168 ns2.129 ns108.97 nsbaseline--NA
ForeachLoop.NET 8.0100110.63 ns2.050 ns1.817 ns110.05 ns1.01x slower0.02x--NA
Linq.NET 8.0100668.47 ns3.593 ns3.001 ns668.03 ns6.07x slower0.14x0.1030216 BNA
LinqFaster.NET 8.0100848.49 ns16.136 ns17.266 ns842.61 ns7.73x slower0.16x4.72749904 BNA
LinqFasterer.NET 8.01001,642.80 ns32.870 ns85.434 ns1,598.31 ns15.00x slower0.84x6.023412624 BNA
LinqAF.NET 8.0100303.14 ns2.775 ns2.460 ns302.51 ns2.76x slower0.06x--NA
StructLinq.NET 8.0100365.47 ns7.238 ns8.335 ns363.79 ns3.33x slower0.11x0.030564 BNA
StructLinq_ValueDelegate.NET 8.0100104.76 ns1.958 ns2.331 ns103.78 ns1.05x faster0.04x--NA
Hyperlinq.NET 8.0100414.98 ns3.637 ns3.572 ns414.46 ns3.78x slower0.08x--NA
Hyperlinq_ValueDelegate.NET 8.0100114.96 ns2.163 ns1.806 ns114.24 ns1.04x slower0.03x--NA
Faslinq.NET 8.0100670.41 ns10.931 ns16.693 ns664.61 ns6.15x slower0.25x3.06706424 BNA
ForLoop.NET 9.0100109.93 ns1.009 ns0.843 ns109.71 nsbaseline--NA
ForeachLoop.NET 9.010084.84 ns1.685 ns1.407 ns84.32 ns1.30x faster0.03x--NA
Linq.NET 9.0100652.22 ns10.848 ns12.914 ns647.89 ns5.97x slower0.16x0.1030216 BNA
LinqFaster.NET 9.0100877.09 ns9.785 ns8.171 ns874.34 ns7.98x slower0.11x4.72749904 BNA
LinqFasterer.NET 9.01001,552.01 ns29.516 ns36.248 ns1,539.66 ns14.09x slower0.27x6.023412624 BNA
LinqAF.NET 9.0100291.39 ns1.250 ns0.976 ns291.55 ns2.65x slower0.02x--NA
StructLinq.NET 9.0100339.68 ns2.719 ns2.123 ns339.79 ns3.09x slower0.03x0.030564 BNA
StructLinq_ValueDelegate.NET 9.0100130.39 ns1.243 ns0.970 ns130.36 ns1.19x slower0.01x--NA
Hyperlinq.NET 9.0100395.53 ns7.427 ns7.294 ns394.37 ns3.60x slower0.08x--NA
Hyperlinq_ValueDelegate.NET 9.010090.71 ns0.770 ns0.856 ns90.29 ns1.21x faster0.01x--NA
Faslinq.NET 9.0100659.48 ns10.070 ns7.862 ns656.61 ns6.00x slower0.07x3.06706424 BNA