]> git.dujemihanovic.xyz Git - linux.git/commit
lib/test_bitops: Add benchmark test for fns()
authorKuan-Wei Chiu <visitorckw@gmail.com>
Thu, 2 May 2024 09:24:42 +0000 (17:24 +0800)
committerYury Norov <yury.norov@gmail.com>
Thu, 9 May 2024 16:25:08 +0000 (09:25 -0700)
commit0a2c6664e56f0dff7535c3d3d9a6174279e18acc
tree6349481a13947ca35841cd3a75fcda2326a723f8
parentefe3a85eab78b6cc02bdfd16aec4410111ea69c0
lib/test_bitops: Add benchmark test for fns()

Introduce a benchmark test for the fns(). It measures the total time
taken by fns() to process 10,000 test data generated using
get_random_bytes() for each n in the range [0, BITS_PER_LONG).

example:
test_bitops: fns:             7637268 ns

CC: Andrew Morton <akpm@linux-foundation.org>
CC: Rasmus Villemoes <linux@rasmusvillemoes.dk>
CC: David Laight <David.Laight@aculab.com>
Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Suggested-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
lib/test_bitops.c