diff --git a/frameworks/CSharp/sisk/benchmark_config.json b/frameworks/CSharp/sisk/benchmark_config.json index 7239513749f..1e8fdc046b0 100644 --- a/frameworks/CSharp/sisk/benchmark_config.json +++ b/frameworks/CSharp/sisk/benchmark_config.json @@ -36,24 +36,6 @@ "database_os": "Linux", "display_name": "Sisk Framework (Cadente)" } - }, - { - "cadente-aot": { - "plaintext_url": "/plaintext", - "json_url": "/json", - "port": 8080, - "approach": "Realistic", - "classification": "Platform", - "database": "None", - "framework": "Sisk", - "language": "C#", - "orm": "Raw", - "platform": ".NET", - "webserver": "Cadente", - "os": "Linux", - "database_os": "Linux", - "display_name": "Sisk Framework (Cadente, Aot)" - } } ] } \ No newline at end of file diff --git a/frameworks/CSharp/sisk/config.toml b/frameworks/CSharp/sisk/config.toml index a413138e231..ac39e86d851 100644 --- a/frameworks/CSharp/sisk/config.toml +++ b/frameworks/CSharp/sisk/config.toml @@ -25,17 +25,4 @@ os = "Linux" orm = "Raw" platform = ".NET" webserver = "Cadente" -versus = "None" - -[cadente-aot] -urls.plaintext = "/plaintext" -urls.json = "/json" -approach = "Realistic" -classification = "Platform" -database = "None" -database_os = "Linux" -os = "Linux" -orm = "Raw" -platform = ".NET" -webserver = "Cadente" -versus = "None" +versus = "None" \ No newline at end of file diff --git a/frameworks/CSharp/sisk/sisk-cadente-aot.dockerfile b/frameworks/CSharp/sisk/sisk-cadente-aot.dockerfile deleted file mode 100644 index bcb6b935be6..00000000000 --- a/frameworks/CSharp/sisk/sisk-cadente-aot.dockerfile +++ /dev/null @@ -1,21 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build -RUN apt-get update -RUN apt-get -yqq install clang zlib1g-dev -WORKDIR /source - -# copy csproj and restore as distinct layers -COPY sisk-cadente/*.csproj . -RUN dotnet restore -r linux-musl-x64 - -# copy and publish app and libraries -COPY sisk-cadente/ . -RUN dotnet publish -c release -o /app -r linux-musl-x64 /p:PublishAot=true /p:OptimizationPreference=Speed /p:GarbageCollectionAdaptationMode=0 - -# final stage/image -FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime -WORKDIR /app -COPY --from=build /app . - -ENTRYPOINT ["./sisk"] - -EXPOSE 8080 \ No newline at end of file diff --git a/frameworks/CSharp/sisk/sisk-cadente-aot/Program.cs b/frameworks/CSharp/sisk/sisk-cadente-aot/Program.cs deleted file mode 100644 index ae586a056de..00000000000 --- a/frameworks/CSharp/sisk/sisk-cadente-aot/Program.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Net; -using System.Text; -using System.Text.Json; -using Sisk.Cadente; - -var host = new HttpHost ( new IPEndPoint ( IPAddress.Any, 8080 ) ); -host.ContextCreated += Host_ContextCreated; - -host.Start (); -Thread.Sleep ( Timeout.Infinite ); - -void Host_ContextCreated ( HttpHost sender, HttpHostContext session ) { - var request = session.Request; - - if (request.Path == "/plaintext") { - SerializePlainTextResponse ( session.Response ); - } - else if (request.Path == "/json") { - SerializeJsonResponse ( session.Response ); - } - else { - session.Response.StatusCode = 404; - } -} - -static void SerializePlainTextResponse ( HttpHostContext.HttpResponse response ) { - - var messageBytes = Encoding.UTF8.GetBytes ( "Hello, world!" ); - - response.Headers.Add ( new HttpHeader ( "Content-Type", "text/plain" ) ); - response.ResponseStream = new MemoryStream ( messageBytes ); -} - -static void SerializeJsonResponse ( HttpHostContext.HttpResponse response ) { - - var contentBytes = JsonSerializer.SerializeToUtf8Bytes ( new { - message = "Hello, world!" - } ); - - response.Headers.Add ( new HttpHeader ( "Content-Type", "application/json" ) ); - response.ResponseStream = new MemoryStream ( contentBytes ); -} \ No newline at end of file diff --git a/frameworks/CSharp/sisk/sisk-cadente-aot/sisk.csproj b/frameworks/CSharp/sisk/sisk-cadente-aot/sisk.csproj deleted file mode 100644 index ff4bed69dc4..00000000000 --- a/frameworks/CSharp/sisk/sisk-cadente-aot/sisk.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - - Exe - net9.0 - enable - enable - true - true - - - - - - - \ No newline at end of file diff --git a/frameworks/CSharp/sisk/sisk-cadente.dockerfile b/frameworks/CSharp/sisk/sisk-cadente.dockerfile index c5eb7a36aa6..34092a0e15c 100644 --- a/frameworks/CSharp/sisk/sisk-cadente.dockerfile +++ b/frameworks/CSharp/sisk/sisk-cadente.dockerfile @@ -7,7 +7,11 @@ RUN dotnet restore -r linux-musl-x64 # copy and publish app and libraries COPY sisk-cadente/ . -RUN dotnet publish -c release -o /app -r linux-musl-x64 +RUN dotnet publish -c release -o /app + +ENV DOTNET_GCDynamicAdaptationMode=0 +ENV DOTNET_ReadyToRun=0 +ENV DOTNET_HillClimbing_Disable=1 # final stage/image FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime