File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed
tests/HttpClientInterception.Benchmarks Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 1+ // Copyright (c) Just Eat, 2017. All rights reserved.
2+ // Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
3+
4+ using BenchmarkDotNet . Configs ;
5+ using BenchmarkDotNet . Diagnosers ;
6+ using BenchmarkDotNet . Jobs ;
7+
8+ namespace JustEat . HttpClientInterception ;
9+
10+ public class CustomBenchmarkConfig : ManualConfig
11+ {
12+ public CustomBenchmarkConfig ( )
13+ : base ( )
14+ {
15+ var job = Job . Default . WithArguments ( [ new MsBuildArgument ( "/p:UseArtifactsOutput=false" ) ] ) ;
16+
17+ AddJob ( job ) ;
18+ AddDiagnoser ( MemoryDiagnoser . Default ) ;
19+ AddDiagnoser ( new EventPipeProfiler ( EventPipeProfile . CpuSampling ) ) ;
20+ }
21+ }
Original file line number Diff line number Diff line change 33
44using System . Text . Json ;
55using BenchmarkDotNet . Attributes ;
6- using BenchmarkDotNet . Diagnosers ;
76using Refit ;
87
98namespace JustEat . HttpClientInterception ;
109
11- [ EventPipeProfiler ( EventPipeProfile . CpuSampling ) ]
12- [ MemoryDiagnoser ]
10+ [ Config ( typeof ( CustomBenchmarkConfig ) ) ]
1311public class InterceptionBenchmarks
1412{
1513 private readonly HttpClientInterceptorOptions _options ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ public sealed class Organization
77{
88 public string Login { get ; set ; }
99
10- public string Id { get ; set ; }
10+ public long Id { get ; set ; }
1111
1212 public string Url { get ; set ; }
1313}
You can’t perform that action at this time.
0 commit comments