From: Florent Bruneau Date: Sat, 4 Oct 2008 21:00:59 +0000 (+0200) Subject: Improves test and cleanup. X-Git-Url: http://git.madism.org/?p=apps%2Fpfixtools.git;a=commitdiff_plain;h=54ffb02d50692303ec08614c416c6718f01bf149 Improves test and cleanup. Signed-off-by: Florent Bruneau --- diff --git a/postlicyd/rbl.c b/postlicyd/rbl.c index d03d06b..911694a 100644 --- a/postlicyd/rbl.c +++ b/postlicyd/rbl.c @@ -195,7 +195,6 @@ uint32_t rbldb_stats(const rbldb_t *rbl) for (int i = 0 ; i < 1 << 16 ; ++i) { ips += array_len(rbl->ips[i]); } - printf("memory overhead of rbldb: %u\n", sizeof(rbldb_t)); return ips; } diff --git a/postlicyd/tst-rbl.c b/postlicyd/tst-rbl.c index 8ba5e12..30d6533 100644 --- a/postlicyd/tst-rbl.c +++ b/postlicyd/tst-rbl.c @@ -48,10 +48,10 @@ int main(int argc, char *argv[]) rbldb_stats(db) * 4); time_t now = time(NULL); - for (uint32_t i = 0 ; i < 100000000 ; ++i) { + for (uint32_t i = 0 ; i < 1000000000 ; ++i) { rbldb_ipv4_lookup(db, (88 << 24) | (170 << 16) | (239 << 8) | (132)); } - printf("%ld request per second\n", 100000000 / (time(NULL) - now)); + printf("%ld request per second\n", 1000000000 / (time(NULL) - now)); rbldb_delete(&db); } return 0;