summaryrefslogtreecommitdiffstats
path: root/benchmark/dict_bench.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-09-10 20:11:47 -0400
committerDavid Robillard <d@drobilla.net>2021-09-10 20:54:28 -0400
commit731ce39ef6fa35f64c19947bdb1719028478fdb9 (patch)
tree87304c55061fc9cd0ab1c3007a78eff44de137dc /benchmark/dict_bench.c
parent904c1b4d699aeb1ce170f0cd996a01d2d06812e3 (diff)
downloadzix-731ce39ef6fa35f64c19947bdb1719028478fdb9.tar.gz
zix-731ce39ef6fa35f64c19947bdb1719028478fdb9.tar.bz2
zix-731ce39ef6fa35f64c19947bdb1719028478fdb9.zip
Add custom allocator support
Diffstat (limited to 'benchmark/dict_bench.c')
-rw-r--r--benchmark/dict_bench.c6
1 files changed, 4 insertions, 2 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);