Skip to content

Commit ae80ce0

Browse files
committed
new benchmarks
1 parent ce9994b commit ae80ce0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

test/FastExpressionCompiler.Benchmarks/AutoMapper_UseCase_Simplified_OneProperty.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,14 @@ public object CompileFast_LightExpression_WithoutClosure() =>
222222
| Create_n_CompileFast | 21.16 us | 0.417 us | 0.684 us | 1.66 | 0.07 | 0.9155 | 0.4272 | - | 5.97 KB |
223223
| Create_n_CompileFast_LightExpression | 12.88 us | 0.246 us | 0.218 us | 1.00 | 0.00 | 0.7324 | 0.3662 | 0.0305 | 4.52 KB |
224224
225+
## v3.1
226+
227+
| Method | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen 0 | Gen 1 | Gen 2 | Allocated |
228+
|------------------------------------- |----------:|---------:|---------:|----------:|------:|--------:|-------:|-------:|-------:|----------:|
229+
| Create_n_Compile | 251.00 us | 1.708 us | 1.334 us | 251.01 us | 22.70 | 1.07 | 1.9531 | 0.9766 | - | 13.34 KB |
230+
| Create_n_CompileFast | 17.99 us | 0.358 us | 0.697 us | 17.63 us | 1.67 | 0.09 | 0.9155 | 0.4578 | 0.0305 | 5.73 KB |
231+
| Create_n_CompileFast_LightExpression | 10.80 us | 0.200 us | 0.385 us | 10.62 us | 1.00 | 0.00 | 0.6866 | 0.3357 | 0.0305 | 4.28 KB |
232+
225233
*/
226234
[MemoryDiagnoser]
227235
public class Create_and_Compile

test/FastExpressionCompiler.Benchmarks/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ public static void Main()
2424
//a.LightExpression_with_sub_expressions_CompiledFast();
2525
//a.Expression_with_sub_expressions_CompiledFast();
2626
//a.Expression_with_sub_expressions_Compiled();
27-
BenchmarkRunner.Run<NestedLambdasVsVars>();
27+
// BenchmarkRunner.Run<NestedLambdasVsVars>();
2828

2929
// BenchmarkRunner.Run<AutoMapper_UseCase_Simplified_OneProperty.Compile_only>();
30-
// BenchmarkRunner.Run<AutoMapper_UseCase_Simplified_OneProperty.Create_and_Compile>();
30+
BenchmarkRunner.Run<AutoMapper_UseCase_Simplified_OneProperty.Create_and_Compile>();
3131
// BenchmarkRunner.Run<AutoMapper_UseCase_Simplified_OneProperty.Invoke_compiled_delegate>();
3232

3333
//BenchmarkRunner.Run<NestedLambdaOverhead>();

0 commit comments

Comments
 (0)