Skip to content

Commit c3dc32e

Browse files
committed
res
1 parent badaa09 commit c3dc32e

37 files changed

Lines changed: 3424 additions & 2388 deletions

frameworks/aspnet-minimal/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313

1414
builder.WebHost.ConfigureKestrel(options =>
1515
{
16+
options.Limits.Http2.MaxStreamsPerConnection = 256;
17+
options.Limits.Http2.InitialConnectionWindowSize = 2 * 1024 * 1024;
18+
options.Limits.Http2.InitialStreamWindowSize = 1024 * 1024;
19+
1620
// HTTP/1.1 on port 8080
1721
options.ListenAnyIP(8080, lo =>
1822
{

requests/json-get.raw

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
GET /json HTTP/1.1
2+
Host: localhost:8080
3+

requests/upload-small.raw

1.07 KB
Binary file not shown.

scripts/benchmark.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ declare -A PROFILES=(
3131
[upload]="1|0||64,256,512|upload"
3232
[compression]="1|0||4096,16384|compression"
3333
[noisy]="1|0||512,4096,16384|noisy"
34+
[mixed]="1|100||512,4096|mixed"
3435
[baseline-h2]="1|0||256,1024|h2"
3536
[static-h2]="1|0||256,1024|static-h2"
3637
[baseline-h3]="32|0||256,512|h3"
3738
[static-h3]="32|0||256,512|static-h3"
3839
)
39-
PROFILE_ORDER=(baseline pipelined limited-conn json upload compression noisy baseline-h2 static-h2 baseline-h3 static-h3)
40+
PROFILE_ORDER=(baseline pipelined limited-conn json upload compression noisy mixed baseline-h2 static-h2 baseline-h3 static-h3)
4041

4142
# Parse flags
4243
SAVE_RESULTS=false
@@ -395,6 +396,10 @@ for profile in "${profiles_to_run[@]}"; do
395396
gc_args=("http://localhost:$PORT"
396397
--raw "$REQUESTS_DIR/json-gzip.raw"
397398
-c "$CONNS" -t "$THREADS" -d "$DURATION" -p "$pipeline")
399+
elif [ "$endpoint" = "mixed" ]; then
400+
gc_args=("http://localhost:$PORT"
401+
--raw "$REQUESTS_DIR/get.raw,$REQUESTS_DIR/get.raw,$REQUESTS_DIR/get.raw,$REQUESTS_DIR/post_cl.raw,$REQUESTS_DIR/post_cl.raw,$REQUESTS_DIR/json-get.raw,$REQUESTS_DIR/upload-small.raw,$REQUESTS_DIR/json-gzip.raw,$REQUESTS_DIR/json-gzip.raw"
402+
-c "$CONNS" -t "$THREADS" -d "$DURATION" -p "$pipeline")
398403
elif [ "$endpoint" = "noisy" ]; then
399404
gc_args=("http://localhost:$PORT"
400405
--raw "$REQUESTS_DIR/get.raw,$REQUESTS_DIR/post_cl.raw,$REQUESTS_DIR/noise-badpath.raw,$REQUESTS_DIR/noise-badcl.raw,$REQUESTS_DIR/noise-binary.raw"

0 commit comments

Comments
 (0)