Skip to content

Commit

Permalink
chore: use same workload on ci and local
Browse files Browse the repository at this point in the history
  • Loading branch information
mickamy committed Jan 4, 2024
1 parent 2c44b68 commit ddc2e09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
WORKLOAD = 3

build-base:
docker build -f ./docker/app/base/Dockerfile -t showwin/ishocon2_app_base:latest .;

Expand All @@ -17,13 +19,13 @@ down:
docker compose down;

bench:
docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload 6"
docker exec -i ishocon2-bench-1 sh -c "./benchmark --ip app:443 --workload ${WORKLOAD}"

bench-with-db-init: up
docker exec -i ishocon2-bench-1 sh -c " \
service mysql restart \
&& tar -jxvf /root/admin/ishocon2.dump.tar.bz2 && mysql -u root -pishocon ishocon2 < /root/admin/ishocon2.dump \
&& ./benchmark --ip app:443 --workload 8 \
&& ./benchmark --ip app:443 --workload ${WORKLOAD} \
";

change-lang:
Expand Down

0 comments on commit ddc2e09

Please sign in to comment.