mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 10:01:25 +00:00
radix tree test suite: benchmark for iterator
This adds simple benchmark for iterator similar to one I've used for
commit 78c1d78488
("radix-tree: introduce bit-optimized iterator")
Building with make BENCHMARK=1 set radix tree order to 6, this allows to
get performance comparable to in kernel performance.
Link: http://lkml.kernel.org/r/1480369871-5271-43-git-send-email-mawilcox@linuxonhyperv.com
Signed-off-by: Konstantin Khlebnikov <koct9i@gmail.com>
Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Matthew Wilcox <mawilcox@microsoft.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ba20cd60c9
commit
cfa40bcfd6
5 changed files with 110 additions and 1 deletions
|
@ -10,7 +10,11 @@
|
|||
#include "../../include/linux/compiler.h"
|
||||
#include "../../../include/linux/kconfig.h"
|
||||
|
||||
#ifdef BENCHMARK
|
||||
#define RADIX_TREE_MAP_SHIFT 6
|
||||
#else
|
||||
#define RADIX_TREE_MAP_SHIFT 3
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue