Skip to content

Commit 6adf2d6

Browse files
committed
bm out
1 parent cdaf72b commit 6adf2d6

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/FastExpressionCompiler.Benchmarks/ArrayCopy_vs_ArrayResize_vs_ForLoop.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,24 @@ public int Add_BySpan()
197197
}
198198

199199
[MemoryDiagnoser, RankColumn, Orderer(BenchmarkDotNet.Order.SummaryOrderPolicy.FastestToSlowest)]
200-
// [HardwareCounters(HardwareCounter.CacheMisses, HardwareCounter.BranchInstructions, HardwareCounter.BranchMispredictions)]
200+
[HardwareCounters(HardwareCounter.CacheMisses, HardwareCounter.BranchInstructions, HardwareCounter.BranchMispredictions)]
201201
public class StackSearch
202202
{
203203
/*
204-
## Strange baseline
204+
## Baseline
205+
206+
BenchmarkDotNet v0.15.0, Windows 11 (10.0.26100.4202/24H2/2024Update/HudsonValley)
207+
Intel Core i9-8950HK CPU 2.90GHz (Coffee Lake), 1 CPU, 12 logical and 6 physical cores
208+
.NET SDK 9.0.203
209+
[Host] : .NET 9.0.4 (9.0.425.16305), X64 RyuJIT AVX2
210+
DefaultJob : .NET 9.0.4 (9.0.425.16305), X64 RyuJIT AVX2
211+
205212
213+
| Method | Mean | Error | StdDev | Median | Ratio | RatioSD | Rank | BranchInstructions/Op | BranchMispredictions/Op | CacheMisses/Op | Allocated | Alloc Ratio |
214+
|----------------- |---------:|---------:|---------:|---------:|------:|--------:|-----:|----------------------:|------------------------:|---------------:|----------:|------------:|
215+
| Search_SIMD_loop | 46.65 ns | 0.763 ns | 0.637 ns | 46.84 ns | 1.00 | 0.02 | 1 | 103 | 0 | 0 | - | NA |
216+
| Search_ILP_4 | 91.72 ns | 1.227 ns | 1.088 ns | 91.91 ns | 1.97 | 0.03 | 2 | 138 | 0 | 0 | - | NA |
217+
| Search_loop | 96.71 ns | 1.975 ns | 4.499 ns | 94.53 ns | 2.07 | 0.10 | 2 | 274 | 0 | 0 | - | NA |
206218
*/
207219

208220
[Benchmark]

0 commit comments

Comments
 (0)