diff --git a/printer/printer.go b/printer/printer.go
index 7d9c77d0..9740524f 100644
--- a/printer/printer.go
+++ b/printer/printer.go
@@ -144,8 +144,29 @@ func (rp *ReportPrinter) getInfluxTags(addErrors bool) string {
s = append(s, fmt.Sprintf(`call="%v"`, options.Call))
s = append(s, fmt.Sprintf(`host="%v"`, options.Host))
s = append(s, fmt.Sprintf("n=%v", options.Total))
- s = append(s, fmt.Sprintf("c=%v", options.Concurrency))
- s = append(s, fmt.Sprintf("rps=%v", options.RPS))
+
+ if options.CSchedule == "const" {
+ s = append(s, fmt.Sprintf("c=%v", options.Concurrency))
+ } else {
+ s = append(s, fmt.Sprintf("concurrency-schedule=%v", options.CSchedule))
+ s = append(s, fmt.Sprintf("concurrency-start=%v", options.CStart))
+ s = append(s, fmt.Sprintf("concurrency-end=%v", options.CEnd))
+ s = append(s, fmt.Sprintf("concurrency-step=%v", options.CStep))
+ s = append(s, fmt.Sprintf("concurrency-step-duration=%v", options.CStepDuration))
+ s = append(s, fmt.Sprintf("concurrency-max-duration=%v", options.CMaxDuration))
+ }
+
+ if options.LoadSchedule == "const" {
+ s = append(s, fmt.Sprintf("rps=%v", options.RPS))
+ } else {
+ s = append(s, fmt.Sprintf("load-schedule=%v", options.LoadSchedule))
+ s = append(s, fmt.Sprintf("load-start=%v", options.LoadStart))
+ s = append(s, fmt.Sprintf("load-end=%v", options.LoadEnd))
+ s = append(s, fmt.Sprintf("load-step=%v", options.LoadStep))
+ s = append(s, fmt.Sprintf("load-step-duration=%v", options.LoadStepDuration))
+ s = append(s, fmt.Sprintf("load-max-duration=%v", options.LoadMaxDuration))
+ }
+
s = append(s, fmt.Sprintf("z=%v", options.Duration.Nanoseconds()))
s = append(s, fmt.Sprintf("timeout=%v", options.Timeout.Seconds()))
s = append(s, fmt.Sprintf("dial_timeout=%v", options.DialTimeout.Seconds()))
@@ -374,424 +395,3 @@ func cleanInfluxString(input string) string {
input = strings.Replace(input, "=", "\\=", -1)
return input
}
-
-var (
- defaultTmpl = `
-Summary:
-{{ if .Name }} Name: {{ .Name }}
-{{ end }} Count: {{ .Count }}
- Total: {{ formatNanoUnit .Total }}
- Slowest: {{ formatNanoUnit .Slowest }}
- Fastest: {{ formatNanoUnit .Fastest }}
- Average: {{ formatNanoUnit .Average }}
- Requests/sec: {{ formatSeconds .Rps }}
-
-Response time histogram:
-{{ histogram .Histogram }}
-Latency distribution:{{ range .LatencyDistribution }}
- {{ .Percentage }} % in {{ formatNanoUnit .Latency }} {{ end }}
-
-{{ if gt (len .StatusCodeDist) 0 }}Status code distribution:
-{{ formatStatusCode .StatusCodeDist }}{{ end }}
-{{ if gt (len .ErrorDist) 0 }}Error distribution:
-{{ formatErrorDist .ErrorDist }}{{ end }}
-`
-
- csvTmpl = `
-duration (ms),status,error{{ range $i, $v := .Details }}
-{{ formatMilli .Latency.Seconds }},{{ .Status }},{{ .Error }}{{ end }}
-`
-
- htmlTmpl = `
-
-
-
-
-
- ghz{{ if .Name }} - {{ .Name }}{{end}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ if .Name }}
-
{{ .Name }}
- {{ end }}
- {{ if .Date }}
- {{ formatDate .Date }}
- {{ end }}
-
-
-
-
-
- {{ if gt (len .Tags) 0 }}
-
-
-
-
- {{ range $tag, $val := .Tags }}
-
-
-
- {{ $tag }}
- {{ $val }}
-
-
-
- {{ end }}
-
-
-
-
- {{ end }}
-
-
-
-
-
-
- Summary
-
-
-
-
- Count |
- {{ .Count }} |
-
-
- Total |
- {{ formatNanoUnit .Total }} |
-
-
- Slowest |
- {{ formatNanoUnit .Slowest }} |
-
-
- Fastest |
- {{ formatNanoUnit .Fastest }} |
-
-
- Average |
- {{ formatNanoUnit .Average }} |
-
-
- Requests / sec |
- {{ formatSeconds .Rps }} |
-
-
-
-
-
-
-
-
- Options
-
-
-
-
{{ jsonify .Options true }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Latency distribution
-
-
-
-
- {{ range .LatencyDistribution }}
- {{ .Percentage }} % |
- {{ end }}
-
-
-
-
- {{ range .LatencyDistribution }}
- {{ formatNanoUnit .Latency }} |
- {{ end }}
-
-
-
-
-
-
-
-
-
-
-
-
- Status distribution
-
-
-
-
- Status |
- Count |
- % of Total |
-
-
-
- {{ range $code, $num := .StatusCodeDist }}
-
- {{ $code }} |
- {{ $num }} |
- {{ formatPercent $num $.Count }} % |
-
- {{ end }}
-
-
-
-
-
-
-
- {{ if gt (len .ErrorDist) 0 }}
-
-
-
-
-
-
-
- Errors
-
-
-
-
- Error |
- Count |
- % of Total |
-
-
-
- {{ range $err, $num := .ErrorDist }}
-
- {{ $err }} |
- {{ $num }} |
- {{ formatPercent $num $.Count }} % |
-
- {{ end }}
-
-
-
-
-
-
-
- {{ end }}
-
-
-
-
-
-
-
-
- Generated by ghz
-
-
-
-
-
-
-
-
-
-
-
-
-
-