aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-03 00:08:10 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-03 00:08:10 +0200
commit0c4a6e96ae41900dab5b4b7c83cbd837223caf2e (patch)
tree82c77645ec947b024f9cf6306dbfc2ec59155184 /internal
parentc8f8f323669ecad7311ad53fbae016712f8becbe (diff)
Set quick default values
To not use for a serious measurement.
Diffstat (limited to 'internal')
-rw-r--r--internal/options/options.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/options/options.go b/internal/options/options.go
index e98d6eb..4c2d342 100644
--- a/internal/options/options.go
+++ b/internal/options/options.go
@@ -16,10 +16,10 @@ type Options struct {
func Parse() (opts Options) {
flag.StringVar(&opts.InputFile, "i", "", "input file, one domain name per line")
- flag.IntVar(&opts.NumWorkers, "w", 32, "number of parallel workers")
- flag.IntVar(&opts.Limit, "l", 16, "rate-limit that kicks in before handing out work in requests/s")
- flag.Int64Var(&opts.MaxResponse, "r", 128, "max response body size to accept in MiB")
- flag.DurationVar(&opts.Timeout, "t", 10*time.Second, "timeout for each website visit")
+ flag.IntVar(&opts.NumWorkers, "w", 128, "number of parallel workers")
+ flag.IntVar(&opts.Limit, "l", 64, "rate-limit that kicks in before handing out work in requests/s")
+ flag.Int64Var(&opts.MaxResponse, "r", 16, "max response body size to accept in MiB")
+ flag.DurationVar(&opts.Timeout, "t", 5*time.Second, "timeout for each website visit")
flag.DurationVar(&opts.MetricsInterval, "m", 5*time.Second, "how often to emit metrics")
flag.Parse()
return