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

View File

@ -1535,6 +1535,29 @@ var testCases = []TestCase{
},
},
},
{
name: "33-bench-mb.txt",
reportName: "33-report.xml",
report: &parser.Report{
Packages: []parser.Package{
{
Name: "compress/flate",
Duration: 83202 * time.Millisecond,
Time: 83202,
Benchmarks: []*parser.Benchmark{
{
Name: "BenchmarkDecode/Digits/Huffman/1e4",
Duration: 104427 * time.Nanosecond,
},
{
Name: "BenchmarkEncode/Digits/Huffman/1e4",
Duration: 28334 * time.Nanosecond,
},
},
},
},
},
},
}
func TestParser(t *testing.T) {