diff options
Diffstat (limited to 'src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs')
-rw-r--r-- | src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs index f6ed69f098..75656bd641 100644 --- a/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs +++ b/src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs @@ -5,27 +5,26 @@ using System; using BenchmarkDotNet.Attributes; using Microsoft.Extensions.DependencyInjection; -namespace Microsoft.AspNetCore.Routing.Matching +namespace Microsoft.AspNetCore.Routing.Matching; + +// Generated from https://github.com/APIs-guru/openapi-directory +// Use https://editor2.swagger.io/ to convert from yaml to json- +public class MatcherBuilderAzureBenchmark : MatcherAzureBenchmarkBase { - // Generated from https://github.com/APIs-guru/openapi-directory - // Use https://editor2.swagger.io/ to convert from yaml to json- - public class MatcherBuilderAzureBenchmark : MatcherAzureBenchmarkBase - { - private IServiceProvider _services; + private IServiceProvider _services; - [GlobalSetup] - public void Setup() - { - SetupEndpoints(); + [GlobalSetup] + public void Setup() + { + SetupEndpoints(); - _services = CreateServices(); - } + _services = CreateServices(); + } - [Benchmark] - public void Dfa() - { - var builder = _services.GetRequiredService<DfaMatcherBuilder>(); - SetupMatcher(builder); - } + [Benchmark] + public void Dfa() + { + var builder = _services.GetRequiredService<DfaMatcherBuilder>(); + SetupMatcher(builder); } -}
\ No newline at end of file +} |