Array.ValueType.ArrayValueTypeWhere.md

February 14, 2024 ยท View on GitHub

Array.ValueType.ArrayValueTypeWhere

Source

ArrayValueTypeWhere.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.0100111.17 ns2.236 ns2.575 ns109.98 nsbaseline--NA
ForeachLoop.NET 8.010078.72 ns0.581 ns0.453 ns78.62 ns1.41x faster0.02x--NA
Linq.NET 8.0100653.83 ns12.724 ns13.067 ns648.95 ns5.87x slower0.21x0.0496104 BNA
LinqFaster.NET 8.0100783.41 ns14.942 ns12.477 ns779.55 ns7.02x slower0.14x4.72749904 BNA
LinqFasterer.NET 8.0100979.89 ns19.617 ns56.600 ns955.01 ns8.85x slower0.61x3.02036328 BNA
LinqAF.NET 8.0100323.98 ns2.117 ns1.876 ns324.13 ns2.89x slower0.08x--NA
StructLinq.NET 8.0100234.92 ns4.721 ns12.437 ns229.99 ns2.22x slower0.12x0.015332 BNA
StructLinq_ValueDelegate.NET 8.0100100.54 ns2.016 ns2.476 ns99.27 ns1.10x faster0.04x--NA
Hyperlinq.NET 8.0100291.77 ns5.880 ns7.221 ns289.71 ns2.62x slower0.09x--NA
Hyperlinq_ValueDelegate.NET 8.0100117.62 ns0.931 ns0.727 ns117.30 ns1.06x slower0.02x--NA
Faslinq.NET 8.0100620.28 ns8.925 ns7.912 ns617.29 ns5.54x slower0.16x3.06706424 BNA
ForLoop.NET 9.0100130.87 ns0.809 ns0.632 ns130.68 nsbaseline--NA
ForeachLoop.NET 9.0100131.32 ns2.074 ns1.620 ns130.38 ns1.00x slower0.01x--NA
Linq.NET 9.0100638.91 ns7.795 ns6.509 ns636.16 ns4.88x slower0.05x0.0496104 BNA
LinqFaster.NET 9.0100783.66 ns15.268 ns19.853 ns778.11 ns6.03x slower0.16x4.72749904 BNA
LinqFasterer.NET 9.0100956.19 ns18.390 ns17.202 ns953.30 ns7.33x slower0.12x3.01936328 BNA
LinqAF.NET 9.0100322.64 ns5.365 ns7.521 ns320.34 ns2.47x slower0.08x--NA
StructLinq.NET 9.0100224.52 ns1.486 ns1.317 ns224.27 ns1.72x slower0.01x0.015332 BNA
StructLinq_ValueDelegate.NET 9.0100116.96 ns2.369 ns3.546 ns115.06 ns1.11x faster0.04x--NA
Hyperlinq.NET 9.0100247.23 ns2.091 ns1.746 ns247.07 ns1.89x slower0.02x--NA
Hyperlinq_ValueDelegate.NET 9.0100106.09 ns1.903 ns2.037 ns105.28 ns1.23x faster0.03x--NA
Faslinq.NET 9.0100646.80 ns7.393 ns6.173 ns647.16 ns4.94x slower0.06x3.06706424 BNA