Skip to content
Commit 0a2c6664 authored by Kuan-Wei Chiu's avatar Kuan-Wei Chiu Committed by Yury Norov
Browse files

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: default avatarKuan-Wei Chiu <visitorckw@gmail.com>
Suggested-by: default avatarYury Norov <yury.norov@gmail.com>
Signed-off-by: default avatarYury Norov <yury.norov@gmail.com>
parent efe3a85e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment