-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
considering settings & benchmarks docker-compose
- Loading branch information
Showing
47 changed files
with
566 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.git | ||
LICENSE | ||
docker-compose.yaml | ||
*.md | ||
assets | ||
Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM golang:1.22-alpine AS build-stage | ||
WORKDIR /app | ||
RUN apk add make | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . . | ||
WORKDIR /app/benchmarks/dumb-server | ||
RUN make build | ||
|
||
FROM alpine | ||
WORKDIR / | ||
COPY --from=build-stage /tmp/bin/dumb-server /dumb-server | ||
ENTRYPOINT ["/dumb-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
version: "3.8" | ||
services: | ||
server: | ||
container_name: server-${COMPOSE_PROJECT_NAME} | ||
image: server | ||
build: | ||
context: ../.. | ||
dockerfile: benchmarks/dumb-server/Dockerfile | ||
network_mode: host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
How to run | ||
- Run in docker (needs docker-compose v2): `docker compose up --abort-on-container-exit` | ||
- Run local: | ||
* Install [framer](../../README.md#install) | ||
* Run dumb server: `(cd ../dumb-server && make run)` | ||
* Execute `./run.sh` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: framer-benchmark | ||
include: | ||
- ../dumb-server/docker-compose.yaml | ||
services: | ||
framer: | ||
container_name: framer | ||
image: framer | ||
build: | ||
context: ../.. | ||
dockerfile: Dockerfile | ||
network_mode: host | ||
volumes: | ||
- ./requests.bin:/tmp/requests.bin | ||
command: > | ||
load --addr=localhost:9090 --inmem-requests | ||
--requests-file=/tmp/requests.bin --clients 10 | ||
unlimited --duration 1m | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '2' | ||
memory: 2G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM openjdk:17-oracle | ||
WORKDIR /app | ||
COPY . /app | ||
RUN ./gradlew | ||
ENTRYPOINT ["./gradlew", "gatlingRun-bench.BenchKt"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
How to run | ||
- Install java/gradle | ||
- Run dumb server: `(cd ../dumb-server && make run)` | ||
- Execute `./run.sh` | ||
- Run in docker (needs docker-compose v2): `docker compose up --abort-on-container-exit` | ||
- Run local: | ||
* Install java and gradle | ||
* Run dumb server: `(cd ../dumb-server && make run)` | ||
* Execute `./run.sh` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: gatling-benchmark | ||
include: | ||
- ../dumb-server/docker-compose.yaml | ||
services: | ||
gatling: | ||
container_name: gatling | ||
image: gatling | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
network_mode: host | ||
working_dir: /app | ||
volumes: | ||
- ./:/app | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: '2' | ||
memory: 2G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM ubuntu:24.04 | ||
WORKDIR /app | ||
ADD https://github.com/bojand/ghz/releases/download/v0.120.0/ghz-linux-x86_64.tar.gz ./ | ||
RUN tar xvf ghz-linux-x86_64.tar.gz | ||
ENTRYPOINT ["/app/ghz"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
How to run | ||
- Run in docker (needs docker-compose v2): `docker compose up --abort-on-container-exit` | ||
- Run local: | ||
- Install [ghz](https://ghz.sh/docs/install) | ||
- Run dumb server: `(cd ../dumb-server && make run)` | ||
- Execute `./run.sh` |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.