Skip to content

Commit 4f71f47

Browse files
author
“llt”
committed
RuntimeIdentifier correction + adding Postgresql ADO test
1 parent e43efe8 commit 4f71f47

4 files changed

Lines changed: 71 additions & 2 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
2+
RUN apt-get update
3+
RUN apt-get -yqq install clang zlib1g-dev
4+
RUN apt-get update
5+
6+
WORKDIR /app
7+
COPY src .
8+
RUN dotnet publish -c Release -o out /p:AOT=true /p:Database=postgresql /p:Driver=ado
9+
10+
11+
# Construct the actual image that will run
12+
FROM mcr.microsoft.com/dotnet/aspnet:10.0.1 AS runtime
13+
14+
RUN apt-get update
15+
RUN apt-get install -y unixodbc-dev unixodbc wget curl
16+
RUN apt-get update
17+
18+
# Full PGO
19+
ENV DOTNET_TieredPGO 1
20+
ENV DOTNET_TC_QuickJitForLoops 1
21+
ENV DOTNET_ReadyToRun 0
22+
23+
ENV ASPNETCORE_URLS http://+:8080
24+
WORKDIR /app
25+
COPY --from=build /app/out ./
26+
27+
#TEST: ./tfb --test appmpower-odbc-my --type db
28+
29+
EXPOSE 8080
30+
31+
ENTRYPOINT ["./appMpower"]

frameworks/CSharp/appmpower/benchmark_config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@
6565
"notes": "",
6666
"versus": "aspnetcore-minimal"
6767
},
68+
"ado-pg": {
69+
"db_url": "/db",
70+
"query_url": "/queries?c=",
71+
"update_url": "/updates?c=",
72+
"fortune_url": "/fortunes",
73+
"cached_query_url": "/cached-worlds?c=",
74+
"port": 8080,
75+
"approach": "Realistic",
76+
"classification": "Platform",
77+
"database": "Postgres",
78+
"framework": "appmpower",
79+
"language": "C#",
80+
"orm": "Raw",
81+
"platform": ".NET",
82+
"flavor": "CoreCLR",
83+
"webserver": "Kestrel",
84+
"os": "Linux",
85+
"database_os": "Linux",
86+
"display_name": "appMpower [aot-no-reflection,pg,ado]",
87+
"notes": "",
88+
"versus": "aspnetcore-minimal"
89+
},
6890
"ado-my": {
6991
"db_url": "/db",
7092
"query_url": "/queries?c=",

frameworks/CSharp/appmpower/config.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@ platform = ".NET"
4646
webserver = "Kestrel"
4747
versus = "aspnetcore-minimal"
4848

49+
[ado-pg]
50+
urls.db = "/db"
51+
urls.query = "/queries?c="
52+
urls.update = "/updates?c="
53+
urls.fortune = "/fortunes"
54+
urls.cached_query = "/cached-worlds?c="
55+
approach = "Realistic"
56+
classification = "Micro"
57+
database = "Postgres"
58+
database_os = "Linux"
59+
os = "Linux"
60+
orm = "Raw"
61+
platform = ".NET"
62+
webserver = "Kestrel"
63+
versus = "aspnetcore-minimal"
64+
4965
[ado-my]
5066
urls.db = "/db"
5167
urls.query = "/queries?c="

frameworks/CSharp/appmpower/src/appMpower/appMpower.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<SelfContained>true</SelfContained>
2222

2323
<!--TODOGITHUB-->
24-
<!--<RuntimeIdentifier>linux-x64</RuntimeIdentifier>--> <!-- docker server -->
24+
<RuntimeIdentifier>linux-x64</RuntimeIdentifier> <!-- docker server -->
2525
<!--TODOLOCAL-->
26-
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier> <!-- docker local -->
26+
<!--<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>--> <!-- docker local -->
2727
<!--<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>--> <!-- outside docker local -->
2828

2929
<PublishTrimmed>true</PublishTrimmed>

0 commit comments

Comments
 (0)