diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-17 14:22:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-17 14:22:23 +0100 |
commit | 430efa5b108294bcfd83aa33fc99454455793dab (patch) | |
tree | 05e6ffd4b2f302f723643fada7c703ed73e7fd5e /test/rspamd_radix_test.c | |
parent | 3963f496e51bb5600e2511fe3381a044e8713100 (diff) | |
download | rspamd-430efa5b108294bcfd83aa33fc99454455793dab.tar.gz rspamd-430efa5b108294bcfd83aa33fc99454455793dab.zip |
More fixes to compressed radix.
Diffstat (limited to 'test/rspamd_radix_test.c')
-rw-r--r-- | test/rspamd_radix_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/rspamd_radix_test.c b/test/rspamd_radix_test.c index 95650232d..68302df00 100644 --- a/test/rspamd_radix_test.c +++ b/test/rspamd_radix_test.c @@ -26,7 +26,7 @@ #include "radix.h" #include "ottery.h" -const gsize max_elts = 5 * 1024 * 1024; +const gsize max_elts = 3 * 1024 * 1024; struct _tv { const char *ip; @@ -111,6 +111,7 @@ rspamd_radix_test_func (void) addrs[i].mask = ottery_rand_range (32); } + msg_info ("old radix performance (%z elts)", nelts); clock_gettime (CLOCK_MONOTONIC, &ts1); for (i = 0; i < nelts; i ++) { guint32 mask = G_MAXUINT32 << (32 - addrs[i].mask); @@ -144,6 +145,7 @@ rspamd_radix_test_func (void) radix_tree_free (tree); + msg_info ("new radix performance (%z elts)", nelts); clock_gettime (CLOCK_MONOTONIC, &ts1); for (i = 0; i < nelts; i ++) { radix_insert_compressed (comp_tree, &addrs[i].addr, sizeof (guint32), |