Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frameworks/genhttp-11/Project.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using GenHTTP.Api.Content;

using GenHTTP.Modules.Compression;
using GenHTTP.Modules.Compression.Algorithms;
using GenHTTP.Modules.IO;
using GenHTTP.Modules.Files;
using GenHTTP.Modules.Layouting;
using GenHTTP.Modules.Layouting.Provider;
using GenHTTP.Modules.Webservices;
Expand Down Expand Up @@ -37,9 +37,9 @@ private static LayoutBuilder AddStaticFiles(this LayoutBuilder app)
{
if (Directory.Exists("/data/static"))
{
var handler = PreCompressedResources.From(ResourceTree.FromDirectory("/data/static"))
.Add(new BrotliAlgorithm());
var handler = Assets.From("/data/static")
.AllowPrecompressed(new BrotliAlgorithm());

app.Add("static", handler);
}

Expand Down
19 changes: 10 additions & 9 deletions frameworks/genhttp-11/genhttp.csproj
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<ServerGarbageCollection>true</ServerGarbageCollection>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>

<PackageReference Include="GenHTTP.Core" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Modules.Compression" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Modules.IO" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Modules.Layouting" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Modules.Webservices" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Modules.Websockets" Version="11.0.0-preview.11" />
<PackageReference Include="GenHTTP.Core" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.Compression" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.IO" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.Files" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.Layouting" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.Webservices" Version="11.0.0-preview.12" />
<PackageReference Include="GenHTTP.Modules.Websockets" Version="11.0.0-preview.12" />

<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="10.0.8" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="10.0.8" />

<PackageReference Include="Npgsql" Version="10.0.3" />

</ItemGroup>

</Project>
24 changes: 12 additions & 12 deletions site/data/api-16-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,28 +414,28 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 134218,
"avg_latency": "5.85ms",
"p99_latency": "28.60ms",
"cpu": "1536.3%",
"memory": "270MiB",
"rps": 142747,
"avg_latency": "5.41ms",
"p99_latency": "26.20ms",
"cpu": "1569.7%",
"memory": "282MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "679.78MB/s",
"input_bw": "7.55MB/s",
"reconnects": 402676,
"status_2xx": 2013276,
"bandwidth": "722.51MB/s",
"input_bw": "8.03MB/s",
"reconnects": 428166,
"status_2xx": 2141211,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 754488,
"tpl_json": 755291,
"tpl_baseline": 803361,
"tpl_json": 803009,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 503489
"tpl_async_db": 534839
},
{
"framework": "genhttp-kestrel",
Expand Down
24 changes: 12 additions & 12 deletions site/data/api-4-256.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,28 +414,28 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 48671,
"avg_latency": "3.89ms",
"p99_latency": "15.60ms",
"cpu": "386.2%",
"memory": "145MiB",
"rps": 57139,
"avg_latency": "3.04ms",
"p99_latency": "13.40ms",
"cpu": "400.7%",
"memory": "152MiB",
"connections": 256,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "246.28MB/s",
"input_bw": "2.74MB/s",
"reconnects": 145991,
"status_2xx": 730070,
"bandwidth": "289.16MB/s",
"input_bw": "3.22MB/s",
"reconnects": 171373,
"status_2xx": 857085,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0,
"tpl_baseline": 273998,
"tpl_json": 273549,
"tpl_baseline": 321630,
"tpl_json": 321243,
"tpl_db": 0,
"tpl_upload": 0,
"tpl_static": 0,
"tpl_async_db": 182523
"tpl_async_db": 214212
},
{
"framework": "genhttp-kestrel",
Expand Down
18 changes: 9 additions & 9 deletions site/data/async-db-1024.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,19 +338,19 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 190146,
"avg_latency": "4.87ms",
"p99_latency": "11.80ms",
"cpu": "3567.3%",
"memory": "346MiB",
"rps": 189386,
"avg_latency": "4.83ms",
"p99_latency": "11.40ms",
"cpu": "3297.1%",
"memory": "343MiB",
"connections": 1024,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "733.59MB/s",
"input_bw": "12.69MB/s",
"reconnects": 75794,
"status_2xx": 1901466,
"bandwidth": "730.92MB/s",
"input_bw": "12.64MB/s",
"reconnects": 75653,
"status_2xx": 1893864,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
16 changes: 8 additions & 8 deletions site/data/baseline-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,19 +432,19 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 1456237,
"avg_latency": "2.64ms",
"p99_latency": "13.50ms",
"cpu": "5863.8%",
"memory": "500MiB",
"rps": 1640007,
"avg_latency": "2.32ms",
"p99_latency": "9.01ms",
"cpu": "5831.4%",
"memory": "635MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "179.12MB/s",
"input_bw": "112.49MB/s",
"bandwidth": "201.74MB/s",
"input_bw": "126.69MB/s",
"reconnects": 0,
"status_2xx": 7281186,
"status_2xx": 8200035,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/baseline-512.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,19 +432,19 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 1477601,
"avg_latency": "346us",
"p99_latency": "3.00ms",
"cpu": "5558.0%",
"rps": 1636023,
"avg_latency": "312us",
"p99_latency": "1.93ms",
"cpu": "5518.6%",
"memory": "242MiB",
"connections": 512,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "181.74MB/s",
"input_bw": "114.14MB/s",
"bandwidth": "201.22MB/s",
"input_bw": "126.38MB/s",
"reconnects": 0,
"status_2xx": 7388005,
"status_2xx": 8180117,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
18 changes: 9 additions & 9 deletions site/data/crud-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 453772,
"avg_latency": "8.62ms",
"p99_latency": "29.50ms",
"cpu": "4029.0%",
"memory": "668MiB",
"rps": 481343,
"avg_latency": "8.01ms",
"p99_latency": "27.60ms",
"cpu": "4247.6%",
"memory": "649MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "172.48MB/s",
"input_bw": "38.95MB/s",
"reconnects": 32095,
"status_2xx": 6806594,
"bandwidth": "183.60MB/s",
"input_bw": "41.31MB/s",
"reconnects": 34083,
"status_2xx": 7220147,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
2 changes: 1 addition & 1 deletion site/data/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"threads_per_core": "2",
"ram": "251Gi",
"os": "Ubuntu 24.04.4 LTS",
"kernel": "6.17.0-29-generic",
"kernel": "6.17.0-22-generic",
"docker": "29.3.0",
"docker_runtime": "runc",
"governor": "performance",
Expand Down
14 changes: 7 additions & 7 deletions site/data/echo-ws-16384.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,18 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 1841848,
"avg_latency": "6.03ms",
"p99_latency": "17.50ms",
"cpu": "6028.1%",
"memory": "1.6GiB",
"rps": 2125534,
"avg_latency": "3.77ms",
"p99_latency": "11.50ms",
"cpu": "5814.0%",
"memory": "1.2GiB",
"connections": 16384,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "12.85MB/s",
"bandwidth": "14.59MB/s",
"reconnects": 0,
"status_2xx": 9209243,
"status_2xx": 10627674,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/echo-ws-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,18 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 2077313,
"avg_latency": "1.77ms",
"p99_latency": "5.08ms",
"cpu": "6214.7%",
"memory": "679MiB",
"rps": 2174866,
"avg_latency": "1.73ms",
"p99_latency": "5.71ms",
"cpu": "5476.1%",
"memory": "708MiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "13.98MB/s",
"bandwidth": "14.65MB/s",
"reconnects": 0,
"status_2xx": 10386569,
"status_2xx": 10874332,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/echo-ws-512.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,18 +155,18 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 2088245,
"avg_latency": "244us",
"p99_latency": "1.20ms",
"cpu": "6076.4%",
"memory": "188MiB",
"rps": 2323004,
"avg_latency": "219us",
"p99_latency": "844us",
"cpu": "6057.1%",
"memory": "202MiB",
"connections": 512,
"threads": 64,
"duration": "5s",
"pipeline": 1,
"bandwidth": "13.94MB/s",
"bandwidth": "15.50MB/s",
"reconnects": 0,
"status_2xx": 10441226,
"status_2xx": 11615021,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/echo-ws-pipeline-16384.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 3615216,
"avg_latency": "1.27ms",
"p99_latency": "2.33ms",
"cpu": "5887.5%",
"memory": "1.6GiB",
"rps": 4497041,
"avg_latency": "4.10ms",
"p99_latency": "3.25ms",
"cpu": "6102.0%",
"memory": "910MiB",
"connections": 16384,
"threads": 64,
"duration": "5s",
"pipeline": 16,
"bandwidth": "24.33MB/s",
"bandwidth": "30.23MB/s",
"reconnects": 0,
"status_2xx": 18076081,
"status_2xx": 22485209,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
14 changes: 7 additions & 7 deletions site/data/echo-ws-pipeline-4096.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@
{
"framework": "genhttp-11",
"language": "C#",
"rps": 3664667,
"avg_latency": "643us",
"p99_latency": "3.27ms",
"cpu": "6106.2%",
"memory": "818MiB",
"rps": 4568791,
"avg_latency": "781us",
"p99_latency": "2.30ms",
"cpu": "5890.0%",
"memory": "1.1GiB",
"connections": 4096,
"threads": 64,
"duration": "5s",
"pipeline": 16,
"bandwidth": "24.57MB/s",
"bandwidth": "30.60MB/s",
"reconnects": 0,
"status_2xx": 18323335,
"status_2xx": 22843959,
"status_3xx": 0,
"status_4xx": 0,
"status_5xx": 0
Expand Down
Loading