Add test for benchmarks with MB/s

This commit is contained in:
Joël Stemmer
2018-06-10 14:20:57 +01:00
parent d5de2960fd
commit 2a37e36ac6
3 changed files with 40 additions and 0 deletions

7
testdata/33-bench-mb.txt vendored Normal file
View File

@ -0,0 +1,7 @@
goos: linux
goarch: amd64
pkg: compress/flate
BenchmarkDecode/Digits/Huffman/1e4-8 10000 104427 ns/op 95.76 MB/s 40629 B/op 5 allocs/op
BenchmarkEncode/Digits/Huffman/1e4-8 50000 28334 ns/op 352.93 MB/s
PASS
ok compress/flate 83.202s

10
testdata/33-report.xml vendored Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite tests="2" failures="0" time="83.202" name="compress/flate">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase classname="flate" name="BenchmarkDecode/Digits/Huffman/1e4" time="0.000104427"></testcase>
<testcase classname="flate" name="BenchmarkEncode/Digits/Huffman/1e4" time="0.000028334"></testcase>
</testsuite>
</testsuites>