59 references to RequestParsingData
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (59)
Http1ConnectionBenchmark.cs (6)
53
[Benchmark(Baseline = true, OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
56
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
58
InsertData(
RequestParsingData
.PlaintextTechEmpowerRequest);
63
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
66
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
68
InsertData(
RequestParsingData
.LiveaspnetRequest);
HttpParserBenchmark.cs (17)
22
var split =
RequestParsingData
.UnicodeRequest.Length / 2;
23
segment.SetOwnedMemory(
RequestParsingData
.UnicodeRequest.AsSpan(0, split).ToArray());
26
next.SetOwnedMemory(
RequestParsingData
.UnicodeRequest.AsSpan(split).ToArray());
32
[Benchmark(Baseline = true, OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
35
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
37
InsertData(
RequestParsingData
.PlaintextTechEmpowerRequest);
42
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
45
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
47
InsertData(
RequestParsingData
.JsonTechEmpowerRequest);
52
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
55
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
57
InsertData(
RequestParsingData
.LiveaspnetRequest);
62
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
65
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
67
InsertData(
RequestParsingData
.UnicodeRequest);
72
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
75
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
InMemoryTransportBenchmark.cs (6)
35
string.Concat(Enumerable.Repeat(_plaintextExpectedResponse,
RequestParsingData
.Pipelining));
64
ValidateResponseAsync(
RequestParsingData
.PlaintextTechEmpowerRequest, _plaintextExpectedResponse).Wait();
65
ValidateResponseAsync(
RequestParsingData
.PlaintextTechEmpowerPipelinedRequests, _plaintextPipelinedExpectedResponse).Wait();
93
await _connection.SendRequestAsync(
RequestParsingData
.PlaintextTechEmpowerRequest);
97
[Benchmark(OperationsPerInvoke =
RequestParsingData
.Pipelining)]
100
await _connection.SendRequestAsync(
RequestParsingData
.PlaintextTechEmpowerPipelinedRequests);
NamedPipesTransportBenchmark.cs (2)
62
ValidateResponseAsync(
RequestParsingData
.PlaintextTechEmpowerRequest, _plaintextExpectedResponse).Wait();
107
await namedPipeClient.WriteAsync(
RequestParsingData
.PlaintextTechEmpowerRequest);
RequestParsingBenchmark.cs (28)
52
[Benchmark(Baseline = true, OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
55
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
57
InsertData(
RequestParsingData
.PlaintextTechEmpowerRequest);
62
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
65
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
67
InsertData(
RequestParsingData
.PlaintextAbsoluteUriRequest);
72
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount *
RequestParsingData
.Pipelining)]
75
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
77
InsertData(
RequestParsingData
.PlaintextTechEmpowerPipelinedRequests);
82
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount *
RequestParsingData
.Pipelining)]
85
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
87
InsertData(
RequestParsingData
.PlaintextTechEmpowerPipelinedRequests);
92
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
95
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
97
InsertData(
RequestParsingData
.LiveaspnetRequest);
102
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount *
RequestParsingData
.Pipelining)]
105
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
107
InsertData(
RequestParsingData
.LiveaspnetPipelinedRequests);
112
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount)]
115
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
117
InsertData(
RequestParsingData
.UnicodeRequest);
122
[Benchmark(OperationsPerInvoke =
RequestParsingData
.InnerLoopCount *
RequestParsingData
.Pipelining)]
125
for (var i = 0; i <
RequestParsingData
.InnerLoopCount; i++)
127
InsertData(
RequestParsingData
.UnicodePipelinedRequests);