From 54ffb02d50692303ec08614c416c6718f01bf149 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 4 Oct 2008 23:00:59 +0200 Subject: [PATCH] Improves test and cleanup. Signed-off-by: Florent Bruneau --- postlicyd/rbl.c | 1 - postlicyd/tst-rbl.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; -- 2.20.1