]> arthur.barton.de Git - netdata.git/blobdiff - profile/benchmark-dictionary.c
Merge pull request #740 from ktsaou/libavl
[netdata.git] / profile / benchmark-dictionary.c
index 6e524797551d24011dcf2380ebbe54a53d50dd6c..846e3c61ac7427c333aabb32f061b5db273dd176 100644 (file)
@@ -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;
 
        // ------------------------------------------------------------------------