Skip to content

Commit 8fb8548

Browse files
committed
Clean up the null driver and example configs
1 parent 4a2a7b1 commit 8fb8548

3 files changed

Lines changed: 23 additions & 23 deletions

File tree

examples/null_err_test.config

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{mode, max}.
22

3-
{duration, infinity}.
3+
{duration, 1}.
4+
{report_interval, 1}.
45

5-
{concurrent, 1}.
6+
{concurrent, 8}.
67

78
{driver, basho_bench_driver_null}.
89

9-
{key_generator, {int_to_bin, {sequential_int, 5000}}}.
10-
%% To permit the sequential_int and partitioned_sequential_int
11-
%% key generators to be able to resume where they left off after a
12-
%% crash (of the client or of the server), uncomment the
13-
%% sequential_int_state_dir and edit path accordingly.
14-
%% {sequential_int_state_dir, "/full/path/to/state/dir"}.
10+
{key_generator, {sequential_int, 5000000}}.
11+
{disable_sequential_int_progress_report, true}.
1512
{value_generator, {fixed_bin, 10248}}.
1613

17-
{operations, [{put, 1}, {an_error, 1}, {another_error, 2}]}.
14+
%% Our ops: 70% of 'absolutely_nothing'
15+
%% 10% of 'an_error'
16+
%% 20% of 'do_something_else'
17+
{operations, [{do_something, 7}, {an_error, 1}, {another_error, 2}]}.

examples/null_test.config

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{mode, max}.
22

33
{duration, 5}.
4+
{report_interval, 1}.
45

5-
{concurrent, 1}.
6+
{concurrent, 8}.
67

78
{driver, basho_bench_driver_null}.
89

9-
{key_generator, {int_to_bin, {sequential_int, 5000000}}}.
10-
%% To permit the sequential_int and partitioned_sequential_int
11-
%% key generators to be able to resume where they left off after a
12-
%% crash (of the client or of the server), uncomment the
13-
%% sequential_int_state_dir and edit path accordingly.
14-
%% {sequential_int_state_dir, "/full/path/to/state/dir"}.
15-
10+
{key_generator, {sequential_int, 5000000}}.
11+
{disable_sequential_int_progress_report, true}.
1612
{value_generator, {fixed_bin, 10248}}.
1713

18-
{operations, [{put, 1}]}.
14+
%% Our ops: 75% of 'absolutely_nothing'
15+
%% 15% of 'do_something'
16+
%% 10% of 'do_something_else'
17+
{operations, [{absolutely_nothing, 15},
18+
{do_something, 3},
19+
{do_something_else, 2}]}.

src/basho_bench_driver_null.erl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@
3333
new(_Id) ->
3434
{ok, undefined}.
3535

36-
run(get, KeyGen, _ValueGen, State) ->
37-
_Key = KeyGen(),
36+
run(absolutely_nothing, _KeyGen, _ValueGen, State) ->
3837
{ok, State};
39-
run(put, KeyGen, ValueGen, State) ->
38+
run(do_something, KeyGen, _ValueGen, State) ->
4039
_Key = KeyGen(),
41-
ValueGen(),
4240
{ok, State};
43-
run(delete, KeyGen, _ValueGen, State) ->
41+
run(do_something_else, KeyGen, ValueGen, State) ->
4442
_Key = KeyGen(),
43+
ValueGen(),
4544
{ok, State};
4645
run(an_error, KeyGen, _ValueGen, State) ->
4746
_Key = KeyGen(),

0 commit comments

Comments
 (0)