rhashtable-test: Do not allocate individual test objects
authorThomas Graf <tgraf@suug.ch>
Thu, 30 Apr 2015 22:37:43 +0000 (22:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2015 03:08:54 +0000 (23:08 -0400)
commitfcc570207c1e7c485050adbab1e5d7808eab0fd4
treeca4e496a02d7dc9bdb8b3fbe0e9908311020128f
parentc2c8a901660dcc647ffe5f6dcb1e4c500a5442aa
rhashtable-test: Do not allocate individual test objects

By far the most expensive part of the selftest was the allocation
of entries. Using a static array allows to measure the rhashtable
operations.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
lib/test_rhashtable.c