Array.Int32.ArrayInt32Where.md

February 14, 2024 ยท View on GitHub

Array.Int32.ArrayInt32Where

Source

ArrayInt32Where.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


MethodRuntimeCountMeanErrorStdDevRatioRatioSDGen0AllocatedAlloc Ratio
ForLoop.NET 8.010065.41 ns0.392 ns0.327 nsbaseline--NA
ForeachLoop.NET 8.010065.52 ns0.358 ns0.299 ns1.00x slower0.01x--NA
Linq.NET 8.0100200.25 ns3.452 ns3.837 ns3.08x slower0.06x0.022948 BNA
LinqFaster.NET 8.0100197.25 ns3.911 ns3.841 ns3.02x slower0.07x0.3173664 BNA
LinqFasterer.NET 8.0100381.73 ns3.857 ns3.011 ns5.84x slower0.06x0.2141448 BNA
LinqAF.NET 8.0100158.30 ns2.752 ns2.945 ns2.42x slower0.05x--NA
StructLinq.NET 8.0100128.81 ns2.384 ns1.861 ns1.97x slower0.03x0.015332 BNA
StructLinq_ValueDelegate.NET 8.010064.79 ns0.769 ns0.719 ns1.01x faster0.01x--NA
Hyperlinq.NET 8.0100105.84 ns2.115 ns2.436 ns1.62x slower0.04x--NA
Hyperlinq_ValueDelegate.NET 8.010075.72 ns1.505 ns1.792 ns1.16x slower0.03x--NA
Faslinq.NET 8.0100240.16 ns4.208 ns4.321 ns3.68x slower0.07x0.2027424 BNA
ForLoop.NET 9.010065.87 ns0.700 ns0.546 nsbaseline--NA
ForeachLoop.NET 9.010065.85 ns0.383 ns0.299 ns1.00x faster0.01x--NA
Linq.NET 9.0100184.70 ns3.731 ns3.308 ns2.79x slower0.04x0.022948 BNA
LinqFaster.NET 9.0100169.62 ns3.386 ns5.841 ns2.60x slower0.09x0.3173664 BNA
LinqFasterer.NET 9.0100356.17 ns2.449 ns1.912 ns5.41x slower0.06x0.2141448 BNA
LinqAF.NET 9.0100148.90 ns2.573 ns2.963 ns2.27x slower0.06x--NA
StructLinq.NET 9.0100151.40 ns1.271 ns0.993 ns2.30x slower0.02x0.015332 BNA
StructLinq_ValueDelegate.NET 9.010063.31 ns0.436 ns0.387 ns1.04x faster0.01x--NA
Hyperlinq.NET 9.0100105.09 ns1.246 ns1.223 ns1.60x slower0.03x--NA
Hyperlinq_ValueDelegate.NET 9.010086.77 ns1.590 ns1.410 ns1.32x slower0.02x--NA
Faslinq.NET 9.0100238.13 ns3.304 ns3.673 ns3.64x slower0.05x0.2027424 BNA