Add benchmark loop
authornorly <ny-git@enpas.org>
Sun, 14 Jul 2019 12:47:20 +0000 (14:47 +0200)
committernorly <ny-git@enpas.org>
Sun, 14 Jul 2019 12:57:19 +0000 (14:57 +0200)
lookup-incoming.c

index da21f4433ba55fb6eac462caa6f83ca94531dddf..2d3fa9cc9bcaf2f9b12a6f2a1cea1539aa092e51 100644 (file)
@@ -196,6 +196,8 @@ int main(int argc, char **argv)
        titles_bitfield_elems = ROUNDUP(titles / BITS_PER_BITFIELD, BITS_PER_BITFIELD);
        titles_bitfield_bytes = titles_bitfield_elems * sizeof(bitfield_type);
 
+BENCHMARK:
+
        titles_seen = calloc(titles_bitfield_bytes, 1);
        titles_prev_round = NULL;
        titles_this_round = calloc(titles_bitfield_bytes, 1);
@@ -245,5 +247,11 @@ int main(int argc, char **argv)
        }
 
 
+       free(titles_seen);
+       free(titles_prev_round);
+       free(titles_this_round);
+
+       //goto BENCHMARK;
+
        return 0;
 }