Skip to content

Commit

Permalink
Improve the chunksize test.
Browse files Browse the repository at this point in the history
This gives now the ratio, and the characters inserted in human readable format.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena committed Nov 6, 2020
1 parent fd451d9 commit 7ffc095
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/chunkenc/memchunk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ func TestChunkSize(t *testing.T) {
t.Fatal(err)
}
t.Log("Chunk size", humanize.Bytes(uint64(len(b))))
t.Log("characters ", inserted)
t.Log("characters ", humanize.Bytes(uint64(inserted)))
t.Log("Ratio", float64(inserted)/float64(len(b)))
})

}
Expand Down

0 comments on commit 7ffc095

Please sign in to comment.