diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-07-29 01:44:15 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-07-29 01:44:15 +0300 |
commit | f39f8dc7a65d06e88afcc70927862803b2b59f10 (patch) | |
tree | a9217eb438cf99ed25c864869bf7b77e94505df9 /profile | |
parent | ee4de7bd2b88b824a40339477bdacb4e465e7afa (diff) |
replaced AVL by Daniel A. Nagy (GPLv2) with an adaptation of libavl by Ben Pfaff (LGPL) that uses exactly the memory footprint of the first
Diffstat (limited to 'profile')
-rw-r--r-- | profile/benchmark-dictionary.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/profile/benchmark-dictionary.c b/profile/benchmark-dictionary.c index 6e52479755..846e3c61ac 100644 --- a/profile/benchmark-dictionary.c +++ b/profile/benchmark-dictionary.c @@ -8,6 +8,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <inttypes.h> #include "dictionary.h" @@ -19,6 +20,8 @@ struct myvalue { int i; }; +void netdata_cleanup_and_exit(int ret) { exit(ret); } + int main(int argc, char **argv) { if(argc || argv) {;} @@ -30,7 +33,7 @@ int main(int argc, char **argv) { unsigned long long dt; char buf[100 + 1]; struct myvalue value, *v; - int i, max = 100000, max2; + int i, max = 30000000, max2; // ------------------------------------------------------------------------ |