From: Matt Joiner Date: Wed, 30 Jan 2019 04:19:32 +0000 (+1100) Subject: Report allocs in BenchmarkAddLargeTorrent X-Git-Tag: v1.1.0~15 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cde8062e75caa3c2f96430d6759df919708755ed;p=btrtrc.git Report allocs in BenchmarkAddLargeTorrent --- diff --git a/client_test.go b/client_test.go index 5f7055df..7f292d9a 100644 --- a/client_test.go +++ b/client_test.go @@ -501,6 +501,7 @@ func BenchmarkAddLargeTorrent(b *testing.B) { cl, err := NewClient(cfg) require.NoError(b, err) defer cl.Close() + b.ReportAllocs() for range iter.N(b.N) { t, err := cl.AddTorrentFromFile("testdata/bootstrap.dat.torrent") if err != nil {