-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathMakefile
31 lines (21 loc) · 996 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
build:
docker build -t benchmark:v1 .
build-apache:
docker build -f Dockerfile.apache -t benchmark-apache:v1 .
build-caddy:
docker build -f Dockerfile.caddy -t benchmark-caddy:v1 .
run: build
docker run --rm -d --add-host=benchmark.test:127.0.0.1 --name go_benchmark benchmark:v1
run-apache: build-apache
docker run --rm -d --add-host=benchmark.test:127.0.0.1 --name go_benchmark benchmark-apache:v1
run-caddy: build-caddy
docker run --rm -d --add-host=benchmark.test:127.0.0.1 --name go_benchmark benchmark-caddy:v1
bench: run
docker exec -it go_benchmark ./benchmark -u https://benchmark.test/bench -c 1000 -n 10000
docker rm -f go_benchmark 2>&1 1>/dev/null
bench-apache: run-apache
docker exec -it go_benchmark ./benchmark -u https://benchmark.test/bench -c 1000 -n 10000
docker rm -f go_benchmark 2>&1 1>/dev/null
bench-caddy: run-caddy
docker exec -it go_benchmark ./benchmark -u https://benchmark.test/bench -c 1000 -n 10000
docker rm -f go_benchmark 2>&1 1>/dev/null