Skip to content

Commit acbd678

Browse files
committed
Added benchmark results.
1 parent dffc3cb commit acbd678

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/Ardalis.Specification.Benchmarks/Benchmark7_SearchMemoryEvaluator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ public class Benchmark7_SearchMemoryEvaluator
66
/*
77
* This benchmark measures search memory evaluation compared to version 8.
88
* In version 9 we're utilizing allocation free GroupBy.
9+
10+
Results from version 9.2.0 on .NET 9.0 (2025-06-12). They're diabolical :)
11+
12+
| Method | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Allocated | Alloc Ratio |
13+
|----------- |----------:|---------:|---------:|------:|--------:|--------:|----------:|------------:|
14+
| EvaluateV8 | 136.54 us | 2.571 us | 2.640 us | 1.00 | 0.03 | 28.8086 | 241832 B | 1.000 |
15+
| Evaluate | 95.22 us | 1.554 us | 1.454 us | 0.70 | 0.02 | - | 96 B | 0.000 |
916
*/
1017

1118
private List<Customer> _source = default!;

tests/Ardalis.Specification.Benchmarks/Benchmark8_SearchMemoryValidator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ public class Benchmark8_SearchMemoryValidator
66
/*
77
* This benchmark measures search memory validator compared to version 8.
88
* In version 9 we're utilizing allocation free GroupBy.
9+
10+
Results from version 9.2.0 on .NET 9.0 (2025-06-12). They're diabolical :)
11+
12+
| Method | Mean | Error | StdDev | Ratio | Gen0 | Allocated | Alloc Ratio |
13+
|----------- |----------:|---------:|---------:|------:|--------:|----------:|------------:|
14+
| ValidateV8 | 222.87 us | 1.797 us | 1.500 us | 1.00 | 73.9746 | 619016 B | 1.00 |
15+
| Validate | 92.96 us | 0.261 us | 0.218 us | 0.42 | - | - | 0.00 |
916
*/
1017

1118
private List<Customer> _source = default!;

0 commit comments

Comments
 (0)