benchtests: Add arc4random benchtest
commit5d765ada01d140d8d1ecf94953a4751593af720d
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Thu, 21 Jul 2022 13:05:01 +0000 (21 10:05 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 22 Jul 2022 14:58:27 +0000 (22 11:58 -0300)
treeec344761c986ebc53ae613c0417a929bfc1381b2
parent8dd890d96f1833a58de6e112a14d63ab44e0a402
benchtests: Add arc4random benchtest

It shows both throughput (total bytes obtained in the test duration)
and latecy for both arc4random and arc4random_buf with different
sizes.

Checked on x86_64-linux-gnu, aarch64-linux, and powerpc64le-linux-gnu.
benchtests/Makefile
benchtests/bench-arc4random.c [new file with mode: 0644]
benchtests/bench-hash-funcs-kernel.h
benchtests/bench-hash-funcs.c
benchtests/bench-util.h