Skip to content

Commit c6dcb56

Browse files
committed
2 parents 3846a22 + 1d0f0af commit c6dcb56

File tree

307 files changed

+5745
-5852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

307 files changed

+5745
-5852
lines changed

frameworks/C++/userver/userver-bare.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt update && \
66

77
WORKDIR /src
88
RUN git clone https://github.com/userver-framework/userver.git && \
9-
cd userver && git checkout ec1a3b07793f8d4cd0968cd61d8e6079d667a1e7
9+
cd userver && git checkout bdd5e1e03921ff378b062f86a189c3cfa3d66332
1010

1111
COPY userver_benchmark/ ./
1212
RUN mkdir build && cd build && \

frameworks/C++/userver/userver.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN apt update && \
66

77
WORKDIR /src
88
RUN git clone https://github.com/userver-framework/userver.git && \
9-
cd userver && git checkout ec1a3b07793f8d4cd0968cd61d8e6079d667a1e7
9+
cd userver && git checkout bdd5e1e03921ff378b062f86a189c3cfa3d66332
1010

1111
COPY userver_benchmark/ ./
1212
RUN mkdir build && cd build && \

frameworks/C++/userver/userver_configs/static_config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# yaml
22
components_manager:
33
event_thread_pool:
4-
threads: 9
5-
dedicated_timer_threads: 1
4+
threads: 8
65
coro_pool:
76
initial_size: 10000 # Preallocate 10000 coroutines at startup.
87
max_size: 300000 # Do not keep more than 300000 preallocated coroutines.
@@ -12,8 +11,9 @@ components_manager:
1211

1312
main-task-processor: # Make a task processor for CPU-bound couroutine tasks.
1413
thread_name: main-worker # OS will show the threads of this task processor with 'main-worker' prefix.
15-
worker_threads: 46
14+
worker_threads: 48
1615
guess-cpu-limit: true
16+
task-processor-queue: work-stealing-task-queue
1717

1818
fs-task-processor: # Make a separate task processor for filesystem bound tasks.
1919
thread_name: fs-worker

frameworks/C/h2o/h2o.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@ CMD ["taskset", \
109109
"dbname=hello_world host=tfb-database password=benchmarkdbpass sslmode=disable user=benchmarkdbuser", \
110110
"-f", \
111111
"/opt/h2o_app/share/h2o_app/template", \
112-
"-m2"]
112+
"-m1"]

frameworks/CSharp/appmpower/appmpower-ado-pg.dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
FROM mcr.microsoft.com/dotnet/sdk:8.0.100 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:Database=mysql
9+
10+
# Construct the actual image that will run
11+
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0 AS runtime
12+
13+
RUN apt-get update
14+
# The following installs standard versions unixodbc and pgsqlodbc
15+
# unixodbc still needs to be installed even if compiled locally
16+
RUN apt-get install -y unixodbc wget curl
17+
RUN apt-get update
18+
19+
WORKDIR /odbc
20+
21+
RUN curl -L -o mariadb-connector-odbc-3.1.20-debian-bookworm-amd64.tar.gz https://downloads.mariadb.com/Connectors/odbc/connector-odbc-3.1.20/mariadb-connector-odbc-3.1.20-debian-bookworm-amd64.tar.gz
22+
RUN tar -xvzf mariadb-connector-odbc-3.1.20-debian-bookworm-amd64.tar.gz
23+
RUN cp mariadb-connector-odbc-3.1.20-debian-bookworm-amd64/lib/mariadb/libm* /usr/lib/
24+
RUN cp -r /odbc/mariadb-connector-odbc-3.1.20-debian-bookworm-amd64/lib/mariadb /usr/local/lib/mariadb
25+
RUN rm mariadb-connector-odbc-3.1.20-debian-bookworm-amd64.tar.gz
26+
#TODOLOCAL
27+
#RUN curl -L -o mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64.tar.gz https://downloads.mariadb.com/Connectors/odbc/connector-odbc-3.1.20/mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64.tar.gz
28+
#RUN tar -xvzf mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64.tar.gz
29+
#RUN cp mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64/lib/mariadb/libm* /usr/lib/
30+
#RUN cp -r /odbc/mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64/lib/mariadb /usr/local/lib/mariadb
31+
#RUN rm mariadb-connector-odbc-3.1.20-debian-bookworm-aarch64.tar.gz
32+
33+
ENV PATH=/usr/local/unixODBC/bin:$PATH
34+
35+
WORKDIR /etc/
36+
COPY odbcinst.ini .
37+
38+
# Full PGO
39+
ENV DOTNET_TieredPGO 1
40+
ENV DOTNET_TC_QuickJitForLoops 1
41+
ENV DOTNET_ReadyToRun 0
42+
43+
ENV ASPNETCORE_URLS http://+:8080
44+
WORKDIR /app
45+
COPY --from=build /app/out ./
46+
47+
RUN cp /usr/lib/libm* /app
48+
49+
EXPOSE 8080
50+
51+
ENTRYPOINT ["./appMpower"]

frameworks/CSharp/appmpower/appmpower-odbc-pg.dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RUN apt-get -yqq install clang zlib1g-dev libkrb5-dev libtinfo5
44

55
WORKDIR /app
66
COPY src .
7-
RUN dotnet publish -c Release -o out /p:Driver=odbc
7+
RUN dotnet publish -c Release -o out /p:Database=postgresql
88

99
# Construct the actual image that will run
1010
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0 AS runtime
@@ -18,6 +18,12 @@ ENV PATH=/usr/local/unixODBC/bin:$PATH
1818
WORKDIR /etc/
1919
COPY odbcinst.ini .
2020

21+
# Full PGO
22+
ENV DOTNET_TieredPGO 1
23+
ENV DOTNET_TC_QuickJitForLoops 1
24+
ENV DOTNET_ReadyToRun 0
25+
26+
ENV ASPNETCORE_URLS http://+:8080
2127
WORKDIR /app
2228
COPY --from=build /app/out ./
2329

frameworks/CSharp/appmpower/appmpower.dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ RUN apt-get -yqq install clang zlib1g-dev libkrb5-dev libtinfo5
44

55
WORKDIR /app
66
COPY src .
7+
#RUN dotnet publish appMpower/appMpower.csproj -c Release -o out
78
RUN dotnet publish -c Release -o out
89

910
# Construct the actual image that will run
1011
FROM mcr.microsoft.com/dotnet/aspnet:8.0.0 AS runtime
12+
# Full PGO
13+
ENV DOTNET_TieredPGO 1
14+
ENV DOTNET_TC_QuickJitForLoops 1
15+
ENV DOTNET_ReadyToRun 0
1116

17+
ENV ASPNETCORE_URLS http://+:8080
1218
WORKDIR /app
1319
COPY --from=build /app/out ./
1420

frameworks/CSharp/appmpower/benchmark_config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
"webserver": "Kestrel",
4040
"os": "Linux",
4141
"database_os": "Linux",
42-
"display_name": "appMpower [aot-no-reflection,odbc]",
42+
"display_name": "appMpower [aot-no-reflection,pg,odbc]",
4343
"notes": "",
4444
"versus": "aspnetcore-minimal"
4545
},
46-
"ado-pg": {
46+
"odbc-my": {
4747
"db_url": "/db",
4848
"query_url": "/queries?c=",
4949
"update_url": "/updates?c=",
@@ -52,7 +52,7 @@
5252
"port": 8080,
5353
"approach": "Realistic",
5454
"classification": "Platform",
55-
"database": "Postgres",
55+
"database": "MySQL",
5656
"framework": "appmpower",
5757
"language": "C#",
5858
"orm": "Raw",
@@ -61,7 +61,7 @@
6161
"webserver": "Kestrel",
6262
"os": "Linux",
6363
"database_os": "Linux",
64-
"display_name": "appMpower [aot-no-reflection,ado]",
64+
"display_name": "appMpower [aot-no-reflection,my,odbc]",
6565
"notes": "",
6666
"versus": "aspnetcore-minimal"
6767
}

frameworks/CSharp/appmpower/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ platform = ".NET"
3030
webserver = "Kestrel"
3131
versus = "aspnetcore-minimal"
3232

33-
[ado-pg]
33+
[odbc-my]
3434
urls.db = "/db"
3535
urls.query = "/queries?c="
3636
urls.update = "/updates?c="
3737
urls.fortune = "/fortunes"
3838
urls.cached_query = "/cached-worlds?c="
3939
approach = "Realistic"
4040
classification = "Micro"
41-
database = "Postgres"
41+
database = "MySQL"
4242
database_os = "Linux"
4343
os = "Linux"
4444
orm = "Raw"

0 commit comments

Comments
 (0)