app/test: improve accuracy on hash measurements
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 10 Jun 2015 15:25:19 +0000 (16:25 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Jun 2015 10:17:52 +0000 (12:17 +0200)
commit4072a35a87d71827c05605ae39eb93b07e9cfd49
tree29be9696a446815f2a31f909700820408e299819
parent4de41856c5e0839bc2a94f6670f17d2e437855bd
app/test: improve accuracy on hash measurements

Cycles per hash calculation were measured per single operation.
It is much more accurate to run several iterations between measurements
and divide by number of iterations.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/test_hash_functions.c