From 973bfc4fc42fff1d702123b13c13693e60ad1f00 Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 01:57:37 +0100 Subject: [PATCH 1/7] Update simplew.dockerfile with dotnet 10 runtime --- frameworks/CSharp/simplew/simplew.dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/CSharp/simplew/simplew.dockerfile b/frameworks/CSharp/simplew/simplew.dockerfile index 8c473477a61..431ce7327fc 100644 --- a/frameworks/CSharp/simplew/simplew.dockerfile +++ b/frameworks/CSharp/simplew/simplew.dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build +FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build WORKDIR /source # copy csproj and restore as distinct layers @@ -10,7 +10,7 @@ COPY Benchmarks/ . RUN dotnet publish -c release -o /app -r linux-musl-x64 --no-restore --self-contained # final stage/image -FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine +FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine ENV DOTNET_GCDynamicAdaptationMode=0 ENV DOTNET_ReadyToRun=0 From bf2e79536c71c9627905bae1e904ded07ba9d6d8 Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 01:58:05 +0100 Subject: [PATCH 2/7] Update website in README.md --- frameworks/CSharp/simplew/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/CSharp/simplew/README.md b/frameworks/CSharp/simplew/README.md index 3d380883ca7..6db827ae819 100644 --- a/frameworks/CSharp/simplew/README.md +++ b/frameworks/CSharp/simplew/README.md @@ -1,6 +1,6 @@ # SimpleW Tests on Linux -See the [SimpleW website](https://stratdev3.github.io/SimpleW/) for more information. +See the [SimpleW website](https://simplew.net) for more information. ## Infrastructure Software Versions @@ -10,9 +10,9 @@ See the [SimpleW website](https://stratdev3.github.io/SimpleW/) for more informa **Platforms** -* .NET 8/9 +* .NET 8/9/10 ## Paths & Source for Tests * [Plaintext](Benchmarks/Program.cs): "/api/plaintext" -* [JSON](Benchmarks/Tests/JsonResource.cs): "/api/json" \ No newline at end of file +* [JSON](Benchmarks/Tests/JsonResource.cs): "/api/json" From d9dd1a51487177cef04fd9eeb6fe1c9ef23f0d2e Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 01:58:45 +0100 Subject: [PATCH 3/7] Update simplew version in Benchmarks.csproj --- frameworks/CSharp/simplew/Benchmarks/Benchmarks.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/CSharp/simplew/Benchmarks/Benchmarks.csproj b/frameworks/CSharp/simplew/Benchmarks/Benchmarks.csproj index 2b894596a8e..445685a0b85 100644 --- a/frameworks/CSharp/simplew/Benchmarks/Benchmarks.csproj +++ b/frameworks/CSharp/simplew/Benchmarks/Benchmarks.csproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 enable enable SimpleW @@ -14,7 +14,7 @@ - + From d0abb0d5883c2505b6972487c2350f24210231ec Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 02:03:39 +0100 Subject: [PATCH 4/7] Update SimpleW Program.cs --- .../CSharp/simplew/Benchmarks/Program.cs | 52 +++++++------------ 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/frameworks/CSharp/simplew/Benchmarks/Program.cs b/frameworks/CSharp/simplew/Benchmarks/Program.cs index 2c69f462d1f..211c9c3976f 100644 --- a/frameworks/CSharp/simplew/Benchmarks/Program.cs +++ b/frameworks/CSharp/simplew/Benchmarks/Program.cs @@ -10,39 +10,25 @@ internal static class Program { public static async Task Main(string[] args) { - var server = new SimpleWServer(IPAddress.Any, 8080); - server.AddDynamicContent("/api"); - server.Start(); + SimpleWServer server = new(IPAddress.Any, 8080); - await Task.Delay(-1); + // minimal api + server.MapGet("/json", (HttpSession session) => { + return session.Response + .Json(new { message = "Hello, World!" }) + .AddHeader("Server", "SimpleW") + .AddHeader("Date", DateTime.Now.ToString("R")) + .NoCompression(); + }); + server.MapGet("/plaintext", (HttpSession session) => { + return session.Response + .Text("Hello, World!") + .AddHeader("Server", "SimpleW") + .AddHeader("Date", DateTime.Now.ToString("R")) + .NoCompression(); + }); + + await server.RunAsync(); } - - public class BenchmarksController : Controller { - [Route("GET", "/json")] - public object Json() { - return Response.MakeResponse( - new { message = "Hello, World!" }, // object will be serialized - addHeaders: new Dictionary() - { - { "Server", "SimpleW" }, - { "Date", DateTime.Now.ToString("R") } - } - // compress parameter is default to null, so no compression - ); - } - [Route("GET", "/plaintext")] - public object Plaintext() { - return Response.MakeResponse( - "Hello, World!", - "text/plain", - addHeaders: new Dictionary() - { - { "Server", "SimpleW" }, - { "Date", DateTime.Now.ToString("R") } - } - // compress parameter is default to null, so no compression - ); - } - } -} \ No newline at end of file +} From 537cec29f4eca3ec4a7eeccc44730e0e1ee5c599 Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 02:04:44 +0100 Subject: [PATCH 5/7] Update SimpleW config.toml --- frameworks/CSharp/simplew/config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/CSharp/simplew/config.toml b/frameworks/CSharp/simplew/config.toml index e9d267af88a..f4db1641910 100644 --- a/frameworks/CSharp/simplew/config.toml +++ b/frameworks/CSharp/simplew/config.toml @@ -10,5 +10,5 @@ os = "Linux" database_os = "Linux" orm = "None" platform = ".NET" -webserver = "Netcoreserver" -versus = "None" \ No newline at end of file +webserver = "SimpleW" +versus = "None" From 3c797ecba48a466361149833f3471c6e01484783 Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Fri, 13 Feb 2026 02:05:10 +0100 Subject: [PATCH 6/7] UpdateSimpleW benchmark_config.json --- frameworks/CSharp/simplew/benchmark_config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/CSharp/simplew/benchmark_config.json b/frameworks/CSharp/simplew/benchmark_config.json index e1396429d39..70c1437ac22 100644 --- a/frameworks/CSharp/simplew/benchmark_config.json +++ b/frameworks/CSharp/simplew/benchmark_config.json @@ -12,7 +12,7 @@ "language": "C#", "orm": "None", "platform": ".NET", - "webserver": "Netcoreserver", + "webserver": "SimpleW", "os": "Linux", "database_os": "Linux", "display_name": "SimpleW", From 139b05e8f7dd559f3d12a251513676f7982d4711 Mon Sep 17 00:00:00 2001 From: Christophe CHATEAU Date: Sun, 15 Feb 2026 15:44:11 +0100 Subject: [PATCH 7/7] Update SimpleW maintainers in benchmark_config.json --- frameworks/CSharp/simplew/benchmark_config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/CSharp/simplew/benchmark_config.json b/frameworks/CSharp/simplew/benchmark_config.json index 70c1437ac22..c4786a83a39 100644 --- a/frameworks/CSharp/simplew/benchmark_config.json +++ b/frameworks/CSharp/simplew/benchmark_config.json @@ -1,5 +1,6 @@ { "framework": "simplew", + "maintainers": ["stratdev3"], "tests": [{ "default": { "plaintext_url": "/api/plaintext",