6 Commits

Author SHA1 Message Date
Joël Stemmer
f1ad02b733 junit: Use the standard duration formatting for benchmark durations
Benchmark durations were originally formatted with higher precision
because they contained just the NsPerOp field. Now that we're
approximating the total duration they are more accurate and don't need
as many decimals.
2022-06-12 23:02:01 +01:00
Joël Stemmer
1d905e0b1c gtr: Improve accuracy of benchmark duration calculation
The NsPerOp was previously casted to a time.Duration (int64) before
multiplying it with the number of iterations. This has been fixed by
doing the casting after the multiplication. The resulting duration
should be a bit more accurate.
2022-06-12 22:56:04 +01:00
Joël Stemmer
9bc291d7ca junit: Make Testsuites.ID a required field 2022-05-21 14:28:22 +01:00
Joël Stemmer
4d05b2dc3f Regenerate testdata files
Many of the testdata files were generated a long time ago with very old
versions of Go. The Go test output has changed over time, and these test
inputs no longer reflect the current state. The intention is to fully
support the test output of the most recent Go versions.

This commit also includes the source used to generate the test output,
so the output can be more easily updated in the future.
2022-05-14 23:21:56 +01:00
Joël Stemmer
84c3710523 junit: Improve benchmark total time calculation 2022-04-01 00:58:11 +01:00
Joël Stemmer
752d873a6e testdata: Add extra leading 0 to testdata files 2022-03-27 23:55:59 +01:00