mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-05 13:32:54 -05:00
gtr,junit: Move Benchmark duration calculation to gtr package
This commit is contained in:
@ -235,7 +235,7 @@ func createTestcaseForBenchmark(pkgName string, bm gtr.Benchmark) Testcase {
|
||||
tc := Testcase{
|
||||
Classname: pkgName,
|
||||
Name: bm.Name,
|
||||
Time: formatBenchmarkTime(time.Duration(bm.NsPerOp) * time.Duration(bm.Iterations)),
|
||||
Time: formatBenchmarkTime(bm.ApproximateDuration()),
|
||||
}
|
||||
|
||||
if bm.Result == gtr.Fail {
|
||||
|
Reference in New Issue
Block a user