diff --git a/src/basho_bench_driver_hanoidb.erl b/src/basho_bench_driver_hanoidb.erl index ec20c1b..5844d54 100644 --- a/src/basho_bench_driver_hanoidb.erl +++ b/src/basho_bench_driver_hanoidb.erl @@ -59,6 +59,7 @@ new(_Id) -> %% Get the target directory Dir = basho_bench_config:get(hanoidb_dir, "."), Filename = filename:join(Dir, "test.hanoidb"), + Config = basho_bench_config:get(hanoidb_flags, []), %% Look for sync interval config case basho_bench_config:get(hanoidb_sync_interval, infinity) of @@ -69,7 +70,7 @@ new(_Id) -> end, %% Get any bitcask flags - case hanoidb:open(Filename) of + case hanoidb:open(Filename, Config) of {error, Reason} -> ?FAIL_MSG("Failed to open hanoidb in ~s: ~p\n", [Filename, Reason]); {ok, FBTree} -> diff --git a/src/hanoidb_bbench.config b/src/hanoidb_bbench.config index 941a860..5978fc0 100644 --- a/src/hanoidb_bbench.config +++ b/src/hanoidb_bbench.config @@ -21,6 +21,11 @@ "../hanoidb/deps/ebloom/ebin" ]}. -{bitcask_dir, "/tmp/hanoidb.bench"}. +% {hanoidb_dir, "/tmp/hanoidb.bench"}. -{bitcask_flags, [o_sync]}. +{hanoidb_flags, [{expiry_secs, 0}, + {sync_strategy, none}, %% |sync|{seconds, N} + {compress, none}, %% |gzip + {page_size, 8192}, % + {merge_strategy, fast} %% |predictable + ]}.