radix-tree-test-suite-benchmark-for-iterator.patch removed from -mm tree
The patch titled
Subject: radix tree test suite: benchmark for iterator
has been removed from the -mm tree. Its filename was
radix-tree-test-suite-benchmark-for-iterator.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Konstantin Khlebnikov <[email protected]>
Subject: radix tree test suite: benchmark for iterator
This adds simple benchmark for iterator similar to one I've used for commit 78c1d78 ("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.
---
tools/testing/radix-tree/Makefile | 6 + tools/testing/radix-tree/benchmark.c | 98 ++++++++++++++++++++++ tools/testing/radix-tree/linux/kernel.h | 4 tools/testing/radix-tree/main.c | 2 tools/testing/radix-tree/test.h | 1 5 files changed, 110 insertions(+), 1 deletion(-)
tools/testing/radix-tree/Makefile renamed from tools/testing/radix-tree/Makefile~radix-tree-test-suite-benchmark-for-iterator +5 -1
@@ -4,7 +4,11 @@ LDFLAGS += -lpthread -lurcu TARGETS = main OFILES = main.o radix-tree.o linux.o test.o tag_check.o find_next_bit.o \ regression1.o regression2.o regression3.o multiorder.o \ - iteration_check.o + iteration_check.o benchmark.o + +ifdef BENCHMARK + CFLAGS += -DBENCHMARK=1 +endif targets: $(TARGETS)
tools/testing/radix-tree/benchmark.c new file +98 -0
98 lines not on this page · raw message
tools/testing/radix-tree/linux/kernel.h renamed from tools/testing/radix-tree/linux/kernel.h~radix-tree-test-suite-benchmark-for-iterator +4 -0
@@ -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
tools/testing/radix-tree/main.c renamed from tools/testing/radix-tree/main.c~radix-tree-test-suite-benchmark-for-iterator +2 -0
@@ -352,6 +352,8 @@ int main(int argc, char **argv)/* Free any remaining preallocated nodes */ radix_tree_cpu_dead (0 ); +benchmark (); +sleep (1 );printf ("after sleep(1): %d allocated, preempt %d\n" , nr_allocated, preempt_count);
tools/testing/radix-tree/test.h renamed from tools/testing/radix-tree/test.h~radix-tree-test-suite-benchmark-for-iterator +1 -0
@@ -28,6 +28,7 @@ void item_kill_tree(struct radix_tree_rovoid tag_check (void );void multiorder_checks (void );void iteration_test (void ); +void benchmark (void );struct item *item_tag_set (struct radix_tree_root *root,unsigned long index,int tag);
_
Patches currently in -mm which might be from [email protected] are