HTTP load generator, ApacheBench (ab) replacement
Go
If concurrency level is set higher than number of requests, don't exit.
Burcu Doganfde62d5b95e4
diff --git a/main.go b/main.goindex 35c34a7..bfe1421 100644--- a/main.go+++ b/main.go@@ -63,8 +63,10 @@ func main() {n := *flagNc := *flagC+ // If total number is smaller than concurrency level,+ // make the total number c.if c > n {- usageAndExit()+ n = c}url := flag.Args()[0]