tenseleyflow/shithub / 8f82a9e

Browse files

S36: make bench-small + bench-full targets

Authored by espadonne
SHA
8f82a9e511728b4ee5948ad2f43fa76960fa1a2f
Parents
e1c16d6
Tree
033a434

1 changed file

StatusFile+-
M Makefile 7 0
Makefilemodified
@@ -82,6 +82,13 @@ lint-markdown: ## Enforce markdown-package boundary (no goldmark/bluemonday outs
8282
 lint-secret-logs: ## Fail when source emits log lines containing token-prefix patterns.
8383
 	@scripts/lint-secret-logs.sh
8484
 
85
+bench-small: ## Run the bench harness against $$BENCH_TARGET (default localhost:8080).
86
+	@go run ./bench -target=$${BENCH_TARGET:-http://localhost:8080} -iters=$${BENCH_ITERS:-20}
87
+
88
+bench-full: ## Placeholder — runs nightly off-CI against big fixtures (see bench/fixtures/README.md).
89
+	@echo "bench-full: big-fixture generators land in a follow-up — see bench/fixtures/README.md"
90
+	@exit 0
91
+
8592
 install-tools: ## Install development tools via 'go install'.
8693
 	go install mvdan.cc/gofumpt@latest
8794
 	go install golang.org/x/tools/cmd/goimports@latest