-
Notifications
You must be signed in to change notification settings - Fork 572
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81ba6c4
commit c7cab40
Showing
31 changed files
with
17,141 additions
and
34 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
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,3 +1,4 @@ | ||
/webapp/public/** | ||
/webapp/javascript/util/** | ||
/webapp/__tests__/** | ||
/benchmark/** |
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 |
---|---|---|
|
@@ -14,3 +14,4 @@ pkged.go | |
.idea | ||
.vscode | ||
vendor/ | ||
benchmark/git-info.env |
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,12 @@ | ||
FROM golang:1.15.6 | ||
|
||
WORKDIR /go/src/app | ||
|
||
COPY go.mod go.sum pyroscope.go ./ | ||
RUN go get -d ./ | ||
|
||
COPY ./pkg pkg | ||
COPY ./benchmark benchmark | ||
|
||
RUN go build -o benchmark-main ./benchmark | ||
CMD ["./benchmark-main"] |
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,28 @@ | ||
## Prerequisites | ||
|
||
* docker-compose | ||
* puppeteer and Google Chrome for screenshots | ||
|
||
|
||
## Usage | ||
|
||
To start benchmark run: | ||
``` | ||
sh start.sh | ||
``` | ||
Pass `--wait` to make the system continue running after benchmarking is over: | ||
``` | ||
sh start.sh --wait | ||
``` | ||
|
||
|
||
## Configuration | ||
|
||
Edit `run-parameters.env` file to change the parameters of the benchmark run. | ||
|
||
|
||
## Browsing results | ||
|
||
To view results open [http://localhost:8080/d/65gjqY3Mk/main?orgId=1](http://localhost:8080/d/65gjqY3Mk/main?orgId=1). | ||
|
||
You will also be able to see screenshots of the runs in `./runs` directory |
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,42 @@ | ||
version: "3.9" | ||
services: | ||
client: | ||
env_file: | ||
- git-info.env | ||
- run-parameters.env | ||
ports: | ||
- 8081:8081 | ||
build: | ||
context: ../ | ||
dockerfile: benchmark/Dockerfile | ||
|
||
pyroscope: | ||
environment: | ||
- PYROSCOPE_LOG_LEVEL=debug | ||
build: | ||
context: ../ | ||
dockerfile: Dockerfile | ||
command: | ||
- server | ||
ports: | ||
- 4040:4040 | ||
deploy: | ||
resources: | ||
limits: | ||
cpus: 1 | ||
memory: 512M | ||
|
||
prometheus: | ||
image: prom/prometheus:v2.27.1 | ||
volumes: | ||
- ./prometheus:/etc/prometheus/ | ||
ports: | ||
- 9090:9090 | ||
|
||
grafana: | ||
image: grafana/grafana:7.5.7 | ||
volumes: | ||
- ./grafana-provisioning:/etc/grafana/provisioning | ||
- ./grafana-docker/grafana.ini:/etc/grafana/grafana.ini | ||
ports: | ||
- 8080:3000 |
Oops, something went wrong.