Add URL-level concurrency (-c flag, Step 7)
Probe multiple URLs in parallel with a bounded worker pool; the N samples of each URL remain sequential to preserve accurate min/avg/max statistics. Default auto-concurrency is min(numURLs, 8); -c 1 restores serial mode. Output is always buffered and printed in original input order. Verified clean with go test -race. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
4
Makefile
4
Makefile
@@ -53,6 +53,10 @@ go-test: ## go: run all tests
|
||||
go-test-verbose: ## go: run all tests with per-case output
|
||||
go -C $(GO_DIR) test -v ./...
|
||||
|
||||
.PHONY: go-test-race
|
||||
go-test-race: ## go: run tests with the race detector enabled
|
||||
go -C $(GO_DIR) test -race ./...
|
||||
|
||||
.PHONY: go-check
|
||||
go-check: go-fmt go-vet go-test ## go: fmt + vet + test (pre-commit gate)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user