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