Skip to content

Commit 98dbf2a

Browse files
committedSep 5, 2024··
Add just tasks for benchmarking
1 parent 3718560 commit 98dbf2a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎justfile

+10
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ system-info:
2929
audit:
3030
go list -json -m all | nancy sleuth --loud
3131

32+
# benchmark the app's HTTP endpoint with plow (requires https://github.com/six-ddc/plow)
33+
benchmark-plow:
34+
@echo plow -c 100 --duration=30s http://localhost:${APP_PORT}/status
35+
@plow -c 100 --duration=30s http://localhost:${APP_PORT}/status
36+
37+
# benchmark the app's HTTP endpoint with wrk (requires https://github.com/wg/wrk)
38+
benchmark-wrk:
39+
@echo wrk -t 10 -c 100 --latency --duration 30 http://localhost:${APP_PORT}/status
40+
@wrk -t 10 -c 100 --latency --duration 30 http://localhost:${APP_PORT}/status
41+
3242
# build executable for local OS
3343
build: test-vanilla
3444
@echo "Building executable for local OS ..."

0 commit comments

Comments
 (0)
Please sign in to comment.