Array.Int32.ArrayInt32Select.md

February 14, 2024 ยท View on GitHub

Array.Int32.ArrayInt32Select

Source

ArrayInt32Select.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.010048.22 ns0.776 ns0.648 ns48.03 nsbaseline--NA
ForeachLoop.NET 8.010046.26 ns0.921 ns1.024 ns45.80 ns1.04x faster0.02x--NA
Linq.NET 8.0100218.97 ns4.365 ns9.207 ns213.65 ns4.58x slower0.23x0.022948 BNA
LinqFaster.NET 8.0100146.73 ns2.147 ns2.386 ns145.93 ns3.05x slower0.07x0.2027424 BNA
LinqFaster_SIMD.NET 8.010098.68 ns1.955 ns2.092 ns97.77 ns2.05x slower0.06x0.2027424 BNA
LinqFasterer.NET 8.0100255.27 ns2.719 ns2.410 ns254.40 ns5.30x slower0.10x0.2179456 BNA
LinqAF.NET 8.0100138.87 ns0.567 ns0.443 ns138.87 ns2.88x slower0.04x--NA
StructLinq.NET 8.0100110.89 ns1.776 ns1.662 ns110.67 ns2.31x slower0.05x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010059.51 ns0.532 ns0.444 ns59.39 ns1.23x slower0.02x--NA
Hyperlinq.NET 8.0100113.43 ns2.136 ns3.627 ns111.64 ns2.36x slower0.08x--NA
Hyperlinq_ValueDelegate.NET 8.010046.33 ns0.936 ns1.041 ns45.84 ns1.03x faster0.03x--NA
Faslinq.NET 8.0100176.41 ns2.006 ns1.675 ns175.92 ns3.66x slower0.07x0.2027424 BNA
ForLoop.NET 9.010046.21 ns0.305 ns0.238 ns46.18 nsbaseline--NA
ForeachLoop.NET 9.010050.81 ns1.045 ns1.803 ns50.30 ns1.09x slower0.04x--NA
Linq.NET 9.0100211.40 ns3.945 ns8.147 ns207.05 ns4.54x slower0.16x0.022948 BNA
LinqFaster.NET 9.0100201.46 ns3.996 ns4.908 ns199.86 ns4.37x slower0.15x0.2027424 BNA
LinqFaster_SIMD.NET 9.010096.92 ns1.068 ns0.892 ns96.83 ns2.10x slower0.03x0.2027424 BNA
LinqFasterer.NET 9.0100327.39 ns3.966 ns3.312 ns326.38 ns7.08x slower0.07x0.2179456 BNA
LinqAF.NET 9.0100139.98 ns2.168 ns1.810 ns139.57 ns3.02x slower0.04x--NA
StructLinq.NET 9.0100115.74 ns2.054 ns3.010 ns114.69 ns2.49x slower0.07x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010058.49 ns1.136 ns1.007 ns58.13 ns1.27x slower0.03x--NA
Hyperlinq.NET 9.010086.49 ns0.640 ns0.500 ns86.34 ns1.87x slower0.01x--NA
Hyperlinq_ValueDelegate.NET 9.010058.70 ns1.210 ns2.302 ns57.58 ns1.29x slower0.07x--NA
Faslinq.NET 9.0100281.75 ns5.535 ns6.152 ns278.32 ns6.07x slower0.12x0.2027424 BNA