Skip to content

Commit 9ba21aa

Browse files
committed
React benchmarks
1 parent a917b70 commit 9ba21aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Servers/Kestrel/perf/Kestrel.Performance/Http1ConnectionBenchmark.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class Http1ConnectionBenchmark
2424

2525
public Http1Connection Connection { get; set; }
2626

27+
[Params(true, false)]
28+
public bool ReuseHeaders { get; set; }
29+
2730
[GlobalSetup]
2831
public void Setup()
2932
{
@@ -33,7 +36,7 @@ public void Setup()
3336

3437
var serviceContext = new ServiceContext
3538
{
36-
ServerOptions = new KestrelServerOptions(),
39+
ServerOptions = new KestrelServerOptions() { ReuseRequestHeaders = ReuseHeaders },
3740
HttpParser = NullParser<Http1ParsingHandler>.Instance
3841
};
3942

0 commit comments

Comments
 (0)