summaryrefslogtreecommitdiffstats
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/dict_bench.c6
-rw-r--r--benchmark/tree_bench.c4
2 files changed, 6 insertions, 4 deletions
diff --git a/benchmark/dict_bench.c b/benchmark/dict_bench.c
index e1583f3..cd358a3 100644
--- a/benchmark/dict_bench.c
+++ b/benchmark/dict_bench.c
@@ -139,8 +139,10 @@ main(int argc, char** argv)
printf("Benchmarking n = %zu\n", n);
GHashTable* hash = g_hash_table_new(g_str_hash, g_str_equal);
- ZixHash* zhash = zix_hash_new(
- identity, (ZixHashFunc)zix_chunk_hash, (ZixEqualFunc)zix_chunk_equal);
+ ZixHash* zhash = zix_hash_new(NULL,
+ identity,
+ (ZixHashFunc)zix_chunk_hash,
+ (ZixEqualFunc)zix_chunk_equal);
fprintf(insert_dat, "%zu", n);
fprintf(search_dat, "%zu", n);
diff --git a/benchmark/tree_bench.c b/benchmark/tree_bench.c
index 6e573ee..b55d772 100644
--- a/benchmark/tree_bench.c
+++ b/benchmark/tree_bench.c
@@ -90,7 +90,7 @@ bench_zix_tree(size_t n_elems,
uintptr_t r = 0;
ZixTreeIter* ti = NULL;
- ZixTree* t = zix_tree_new(false, int_cmp, NULL, NULL, NULL);
+ ZixTree* t = zix_tree_new(NULL, false, int_cmp, NULL, NULL, NULL);
// Insert n_elems elements
struct timespec insert_start = bench_start();
@@ -157,7 +157,7 @@ bench_zix_btree(size_t n_elems,
uintptr_t r = 0u;
ZixBTreeIter ti = zix_btree_end_iter;
- ZixBTree* t = zix_btree_new(int_cmp, NULL);
+ ZixBTree* t = zix_btree_new(NULL, int_cmp, NULL);
// Insert n_elems elements
struct timespec insert_start = bench_start();