]> git.ipfire.org Git - thirdparty/zstd.git/commit
improve benchmark measurement for small inputs
authorYann Collet <cyan@fb.com>
Tue, 20 Feb 2018 22:48:09 +0000 (14:48 -0800)
committerYann Collet <cyan@fb.com>
Tue, 20 Feb 2018 22:58:40 +0000 (14:58 -0800)
commitd3364aa39e2243638de9ead10699ccd35e0926eb
treec40b16ce5cc49efedea32c4df6719dbe93a176d7
parent70163bf0d3b3f1fb9cc56eab316041311622c68b
improve benchmark measurement for small inputs

by invoking time() once per batch, instead of once per compression / decompression.
Batch is dynamically resized so that each round lasts approximately 1 second.

Also : increases time accuracy to nanosecond
programs/bench.c
programs/util.h