diff --git a/pkg/junit/junit.go b/pkg/junit/junit.go index dfcdfc7..ca1abb6 100644 --- a/pkg/junit/junit.go +++ b/pkg/junit/junit.go @@ -187,7 +187,7 @@ func CreateFromReport(report gtr.Report, hostname string) Testsuites { tc := Testcase{ Classname: pkg.Name, Name: bm.Name, - Time: formatBenchmarkTime(time.Duration(bm.NsPerOp)), + Time: formatBenchmarkTime(time.Duration(bm.NsPerOp) * time.Duration(bm.Iterations)), } if bm.Result == gtr.Fail { diff --git a/testdata/022-report.xml b/testdata/022-report.xml index 5cccd17..521e33d 100644 --- a/testdata/022-report.xml +++ b/testdata/022-report.xml @@ -4,8 +4,8 @@ - - + + diff --git a/testdata/023-report.xml b/testdata/023-report.xml index 63ba3f9..300725c 100644 --- a/testdata/023-report.xml +++ b/testdata/023-report.xml @@ -4,8 +4,8 @@ - - + + diff --git a/testdata/024-report.xml b/testdata/024-report.xml index 305d403..7c678ad 100644 --- a/testdata/024-report.xml +++ b/testdata/024-report.xml @@ -8,7 +8,7 @@ - - + + diff --git a/testdata/025-report.xml b/testdata/025-report.xml index 00fb0cf..50ce583 100644 --- a/testdata/025-report.xml +++ b/testdata/025-report.xml @@ -4,7 +4,7 @@ - - + + diff --git a/testdata/026-report.xml b/testdata/026-report.xml index 273a6d4..1cbdf42 100644 --- a/testdata/026-report.xml +++ b/testdata/026-report.xml @@ -4,18 +4,18 @@ - - + + - - - - + + + + diff --git a/testdata/027-report.xml b/testdata/027-report.xml index 792cf19..0afc4d3 100644 --- a/testdata/027-report.xml +++ b/testdata/027-report.xml @@ -4,8 +4,8 @@ - - + + - + diff --git a/testdata/029-report.xml b/testdata/029-report.xml index e64584f..3c446f2 100644 --- a/testdata/029-report.xml +++ b/testdata/029-report.xml @@ -4,7 +4,7 @@ - + diff --git a/testdata/033-report.xml b/testdata/033-report.xml index cf6436b..1ae7bb5 100644 --- a/testdata/033-report.xml +++ b/testdata/033-report.xml @@ -4,8 +4,8 @@ - - + +