Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs')
-rw-r--r--src/Http/Routing/perf/Microbenchmarks/Matching/MatcherBuilderAzureBenchmark.cs37
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
+}