mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-03 20:52:47 -05:00
Adds multi-package benchmark support, simplifies merge benchmark averaging. Addressing code review comments.
This commit is contained in:
2
testdata/25-report.xml
vendored
2
testdata/25-report.xml
vendored
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite tests="10" failures="0" time="14.211" name="pkg/count">
|
||||
<testsuite tests="2" failures="0" time="14.211" name="pkg/count">
|
||||
<properties>
|
||||
<property name="go.version" value="1.0"></property>
|
||||
</properties>
|
||||
|
20
testdata/26-report.xml
vendored
20
testdata/26-report.xml
vendored
@ -1,15 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<testsuites>
|
||||
<testsuite tests="15" failures="0" time="14.211" name="multiple/repeating">
|
||||
<testsuite tests="2" failures="0" time="7.267" name="mycode/common">
|
||||
<properties>
|
||||
<property name="go.version" value="1.0"></property>
|
||||
</properties>
|
||||
<testcase classname="repeating" name="TestRepeat" time="0.000"></testcase>
|
||||
<testcase classname="repeating" name="TestRepeat" time="0.000"></testcase>
|
||||
<testcase classname="repeating" name="TestRepeat" time="0.000"></testcase>
|
||||
<testcase classname="repeating" name="TestRepeat" time="0.000"></testcase>
|
||||
<testcase classname="repeating" name="TestRepeat" time="0.000"></testcase>
|
||||
<testcase classname="repeating" name="BenchmarkNew" time="0.000000352"></testcase>
|
||||
<testcase classname="repeating" name="BenchmarkFew" time="0.000000102"></testcase>
|
||||
<testcase classname="common" name="BenchmarkParse" time="0.000001591"></testcase>
|
||||
<testcase classname="common" name="BenchmarkNewTask" time="0.000000391"></testcase>
|
||||
</testsuite>
|
||||
<testsuite tests="4" failures="0" time="47.084" name="mycode/benchmarks/channels">
|
||||
<properties>
|
||||
<property name="go.version" value="1.0"></property>
|
||||
</properties>
|
||||
<testcase classname="channels" name="BenchmarkFanout/Channel/10" time="0.000004673"></testcase>
|
||||
<testcase classname="channels" name="BenchmarkFanout/Channel/100" time="0.000024965"></testcase>
|
||||
<testcase classname="channels" name="BenchmarkFanout/Channel/1000" time="0.000195672"></testcase>
|
||||
<testcase classname="channels" name="BenchmarkFanout/Channel/10000" time="0.002410200"></testcase>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
|
33
testdata/26-testbenchmultiple.txt
vendored
33
testdata/26-testbenchmultiple.txt
vendored
@ -1,23 +1,12 @@
|
||||
=== RUN TestRepeat
|
||||
--- PASS: TestRepeat (0.00s)
|
||||
=== RUN TestRepeat
|
||||
--- PASS: TestRepeat (0.00s)
|
||||
=== RUN TestRepeat
|
||||
--- PASS: TestRepeat (0.00s)
|
||||
=== RUN TestRepeat
|
||||
--- PASS: TestRepeat (0.00s)
|
||||
=== RUN TestRepeat
|
||||
--- PASS: TestRepeat (0.00s)
|
||||
pkg: multiple/repeating
|
||||
BenchmarkNew-8 5000000 350 ns/op 80 B/op 3 allocs/op
|
||||
BenchmarkNew-8 5000000 357 ns/op 80 B/op 3 allocs/op
|
||||
BenchmarkNew-8 5000000 354 ns/op 80 B/op 3 allocs/op
|
||||
BenchmarkNew-8 5000000 358 ns/op 80 B/op 3 allocs/op
|
||||
BenchmarkNew-8 5000000 345 ns/op 80 B/op 3 allocs/op
|
||||
BenchmarkFew-8 5000000 100 ns/op 20 B/op 1 allocs/op
|
||||
BenchmarkFew-8 5000000 105 ns/op 20 B/op 1 allocs/op
|
||||
BenchmarkFew-8 5000000 102 ns/op 20 B/op 1 allocs/op
|
||||
BenchmarkFew-8 5000000 102 ns/op 20 B/op 1 allocs/op
|
||||
BenchmarkFew-8 5000000 102 ns/op 20 B/op 1 allocs/op
|
||||
pkg: mycode/common
|
||||
BenchmarkParse-8 1000000 1591 ns/op
|
||||
BenchmarkNewTask-8 3000000 391 ns/op
|
||||
PASS
|
||||
ok multiple/repeating 14.211s
|
||||
ok mycode/common 7.267s
|
||||
pkg: mycode/benchmarks/channels
|
||||
BenchmarkFanout/Channel/10-8 500000 4673 ns/op
|
||||
BenchmarkFanout/Channel/100-8 50000 24965 ns/op
|
||||
BenchmarkFanout/Channel/1000-8 10000 195672 ns/op
|
||||
BenchmarkFanout/Channel/10000-8 500 2410200 ns/op
|
||||
PASS
|
||||
ok mycode/benchmarks/channels 47.084s
|
Reference in New Issue
Block a user