diff --git a/internal/util/report_builder.go b/internal/util/report_builder.go index 88d3078..4eb284a 100644 --- a/internal/util/report_builder.go +++ b/internal/util/report_builder.go @@ -28,122 +28,194 @@ type Report struct { func (r *Report) GenerateHTML() error { htmlTemplate := ` - - - - - - HyperLedger Firefly Performance Report - - - - - -
-

Test runner configuration

- -
-{{.RunnerConfig}}
-            
-
-
- -
-

Test metrics

-

- Test instance:{{.TestInstanceName}} -

-
- - - - - - - - - - - - {{range .TestRuns}} - - - - - - - - - - - {{end}} -
Test nameTest durationActionsSend TPSMin LatencyMax LatencyAvg LatencyThroughput
{{.Name}}{{.TotalActions}}{{.Duration}}{{.SendRate}}{{.MinLatency}}{{.MaxLatency}}{{.AvgLatency}}{{.Throughput}}
-
-
- - -` + + + + + + Firefly: Performance Report + + + + +
+ +
+

Firefly Performance Report

+

Version: v0.1.0

+

Test instance name: {{.TestInstanceName}}

+
+

Test Instance Configuration

+ +
{{.RunnerConfig}}
+
+
+ +
+

Test Metrics

+
+ + + + + + + + + + + + {{range .TestRuns}} + + + + + + + + + + + {{end}} +
Test nameTest duration (secs)ActionsSend TPSMin LatencyMax LatencyAvg LatencyThroughput
{{.Name}}{{.Duration}}{{.TotalActions}}{{.SendRate}}{{.MinLatency}}{{.MaxLatency}}{{.AvgLatency}}{{.Throughput}}
+
+
+
+
+ + + ` // Execute the template tmpl, err := template.New("template").Parse(htmlTemplate) if err != nil {