Skip to content

Commit

Permalink
fix docker image and rerunning serverpod
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelaziz-mahdy committed Sep 24, 2024
1 parent fd8d85c commit d2e711d
Show file tree
Hide file tree
Showing 29 changed files with 1,434 additions and 1,020 deletions.
44 changes: 22 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,75 +55,75 @@ Visual comparisons for database endpoints and static endpoints are provided to s
# Database Endpoints

## Comparison Graph with db endpoints
![Comparison Graph](comparison_graph_db_test.png?v=1717266655)
![Comparison Graph](comparison_graph_db_test.png?v=1727143658)

## Detailed Graphs for each backend
- **go mux db_test**
![go mux db_test Benchmark Graph](backends/go/mux/tests/results/db_test/graph.png?v=1717266655)
![go mux db_test Benchmark Graph](backends/go/mux/tests/results/db_test/graph.png?v=1727143658)

- **c_sharp dot net db_test**
![c_sharp dot net db_test Benchmark Graph](backends/c_sharp/dot-net/tests/results/db_test/graph.png?v=1717266655)
![c_sharp dot net db_test Benchmark Graph](backends/c_sharp/dot-net/tests/results/db_test/graph.png?v=1727143658)

- **python django sync db_test**
![python django sync db_test Benchmark Graph](backends/python/django-sync/tests/results/db_test/graph.png?v=1717266655)
![python django sync db_test Benchmark Graph](backends/python/django-sync/tests/results/db_test/graph.png?v=1727143658)

- **python fast api db_test**
![python fast api db_test Benchmark Graph](backends/python/fast-api/tests/results/db_test/graph.png?v=1717266655)
![python fast api db_test Benchmark Graph](backends/python/fast-api/tests/results/db_test/graph.png?v=1727143658)

- **python django async db_test**
![python django async db_test Benchmark Graph](backends/python/django-async/tests/results/db_test/graph.png?v=1717266655)
![python django async db_test Benchmark Graph](backends/python/django-async/tests/results/db_test/graph.png?v=1727143658)

- **dart server pod db_test**
![dart server pod db_test Benchmark Graph](backends/dart/server-pod/tests/results/db_test/graph.png?v=1717266655)
![dart server pod db_test Benchmark Graph](backends/dart/server-pod/tests/results/db_test/graph.png?v=1727143658)

- **rust actix web db_test**
![rust actix web db_test Benchmark Graph](backends/rust/actix-web/tests/results/db_test/graph.png?v=1717266655)
![rust actix web db_test Benchmark Graph](backends/rust/actix-web/tests/results/db_test/graph.png?v=1727143658)

- **java spring boot db_test**
![java spring boot db_test Benchmark Graph](backends/java/spring-boot/tests/results/db_test/graph.png?v=1717266655)
![java spring boot db_test Benchmark Graph](backends/java/spring-boot/tests/results/db_test/graph.png?v=1727143658)

- **javascript express bun db_test**
![javascript express bun db_test Benchmark Graph](backends/javascript/express-bun/tests/results/db_test/graph.png?v=1717266655)
![javascript express bun db_test Benchmark Graph](backends/javascript/express-bun/tests/results/db_test/graph.png?v=1727143658)

- **javascript express node db_test**
![javascript express node db_test Benchmark Graph](backends/javascript/express-node/tests/results/db_test/graph.png?v=1717266655)
![javascript express node db_test Benchmark Graph](backends/javascript/express-node/tests/results/db_test/graph.png?v=1727143658)



# Static Endpoints

## Comparison Graph with static endpoints
![Comparison Graph](comparison_graph_no_db_test.png?v=1717266655)
![Comparison Graph](comparison_graph_no_db_test.png?v=1727143658)

## Detailed Graphs for each backend
- **go mux no_db_test**
![go mux no_db_test Benchmark Graph](backends/go/mux/tests/results/no_db_test/graph.png?v=1717266655)
![go mux no_db_test Benchmark Graph](backends/go/mux/tests/results/no_db_test/graph.png?v=1727143658)

- **c_sharp dot net no_db_test**
![c_sharp dot net no_db_test Benchmark Graph](backends/c_sharp/dot-net/tests/results/no_db_test/graph.png?v=1717266655)
![c_sharp dot net no_db_test Benchmark Graph](backends/c_sharp/dot-net/tests/results/no_db_test/graph.png?v=1727143658)

- **python django sync no_db_test**
![python django sync no_db_test Benchmark Graph](backends/python/django-sync/tests/results/no_db_test/graph.png?v=1717266655)
![python django sync no_db_test Benchmark Graph](backends/python/django-sync/tests/results/no_db_test/graph.png?v=1727143658)

- **python fast api no_db_test**
![python fast api no_db_test Benchmark Graph](backends/python/fast-api/tests/results/no_db_test/graph.png?v=1717266655)
![python fast api no_db_test Benchmark Graph](backends/python/fast-api/tests/results/no_db_test/graph.png?v=1727143658)

- **python django async no_db_test**
![python django async no_db_test Benchmark Graph](backends/python/django-async/tests/results/no_db_test/graph.png?v=1717266655)
![python django async no_db_test Benchmark Graph](backends/python/django-async/tests/results/no_db_test/graph.png?v=1727143658)

- **dart server pod no_db_test**
![dart server pod no_db_test Benchmark Graph](backends/dart/server-pod/tests/results/no_db_test/graph.png?v=1717266655)
![dart server pod no_db_test Benchmark Graph](backends/dart/server-pod/tests/results/no_db_test/graph.png?v=1727143658)

- **rust actix web no_db_test**
![rust actix web no_db_test Benchmark Graph](backends/rust/actix-web/tests/results/no_db_test/graph.png?v=1717266655)
![rust actix web no_db_test Benchmark Graph](backends/rust/actix-web/tests/results/no_db_test/graph.png?v=1727143658)

- **java spring boot no_db_test**
![java spring boot no_db_test Benchmark Graph](backends/java/spring-boot/tests/results/no_db_test/graph.png?v=1717266655)
![java spring boot no_db_test Benchmark Graph](backends/java/spring-boot/tests/results/no_db_test/graph.png?v=1727143658)

- **javascript express bun no_db_test**
![javascript express bun no_db_test Benchmark Graph](backends/javascript/express-bun/tests/results/no_db_test/graph.png?v=1717266655)
![javascript express bun no_db_test Benchmark Graph](backends/javascript/express-bun/tests/results/no_db_test/graph.png?v=1727143658)

- **javascript express node no_db_test**
![javascript express node no_db_test Benchmark Graph](backends/javascript/express-node/tests/results/no_db_test/graph.png?v=1717266655)
![javascript express node no_db_test Benchmark Graph](backends/javascript/express-node/tests/results/no_db_test/graph.png?v=1727143658)


Binary file modified backends/c_sharp/dot-net/tests/results/db_test/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified backends/c_sharp/dot-net/tests/results/no_db_test/graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion backends/dart/server-pod/benchmark_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ COPY --from=build /runtime/ /
COPY --from=build /app/bin/server server
COPY --from=build /app/config/ config/
COPY --from=build /app/web/ web/
COPY --from=build /app/migrations/ migrations/
# Install curl in the final image
RUN apk add --no-cache curl

EXPOSE 8000
EXPOSE 8080
EXPOSE 8081
EXPOSE 8082

ENTRYPOINT ./server --mode=$runmode --server-id=$serverid --logging=$logging --role=$role
CMD ./server --apply-migrations && ./server --mode=$runmode --server-id=$serverid --logging=$logging --role=$role
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Type,Name,Request Count,Failure Count,Median Response Time,Average Response Time,Min Response Time,Max Response Time,Average Content Size,Requests/s,Failures/s,50%,66%,75%,80%,90%,95%,98%,99%,99.9%,99.99%,100%
POST,/note/createNote/,753898,0,2500,3273.167216254719,1,12782,4.0,753.824426748602,0.0,2500,4100,5500,6600,8700,10000,11000,11000,13000,13000,13000
POST,/note/getAllNotes/,755513,0,2500,3270.4071657271284,1,12785,6792.456301877003,755.4392691400118,0.0,2500,4100,5500,6600,8700,10000,11000,11000,13000,13000,13000
,Aggregated,1509411,0,2500,3271.785714427681,1,12785,3401.859818167484,1509.2636958886137,0.0,2500,4100,5500,6600,8700,10000,11000,11000,13000,13000,13000
POST,/note/createNote/,680370,0,3300.0,3638.604106914987,1.9140409999636177,10366.908963000014,4.0,680.2474564804065,0.0,3300,5200,6500,7200,8700,9400,9900,10000,10000,10000,10000
POST,/note/getAllNotes/,681484,0,3300.0,3632.1779690321537,1.5607499999532592,10361.561004000123,6857.579739216181,681.3612558344627,0.0,3300,5200,6500,7200,8700,9400,9900,10000,10000,10000,10000
,Aggregated,1361854,0,3300.0,3635.388409675085,1.5607499999532592,10366.908963000014,3433.592992347197,1361.6087123148693,0.0,3300,5200,6500,7200,8700,9400,9900,10000,10000,10000,10000
Loading

0 comments on commit d2e711d

Please sign in to comment.