@@ -24,7 +24,7 @@ pub struct WorkloadParams {
24
24
/// Accepted values are in the range of 0 to 100
25
25
#[ clap( default_value = "10" ) ]
26
26
#[ clap( value_parser=clap:: value_parser!( u8 ) . range( 0 ..=100 ) ) ]
27
- #[ arg( long = "workload- delete-bias" , short = 'd' ) ]
27
+ #[ arg( long = "delete-bias" , short = 'd' ) ]
28
28
pub delete : u8 ,
29
29
30
30
/// When generating a value, the probability of generating a value that will spill into the
@@ -33,7 +33,7 @@ pub struct WorkloadParams {
33
33
/// Accepted values are in the range of 0 to 100
34
34
#[ clap( default_value = "10" ) ]
35
35
#[ clap( value_parser=clap:: value_parser!( u8 ) . range( 0 ..=100 ) ) ]
36
- #[ arg( long = "workload- overflow-bias" , short = 'o' ) ]
36
+ #[ arg( long = "overflow-bias" , short = 'o' ) ]
37
37
pub overflow : u8 ,
38
38
39
39
/// When generating a key, whether it should be one that was appeared somewhere
@@ -42,49 +42,49 @@ pub struct WorkloadParams {
42
42
/// Accepted values are in the range of 0 to 100
43
43
#[ clap( default_value = "50" ) ]
44
44
#[ clap( value_parser=clap:: value_parser!( u8 ) . range( 0 ..=100 ) ) ]
45
- #[ arg( long = "workload- new-key-bias" , short = 'n' ) ]
45
+ #[ arg( long = "new-key-bias" , short = 'n' ) ]
46
46
pub new_key : u8 ,
47
47
48
48
/// The number of times a workload will be executed.
49
49
#[ clap( default_value = "50" ) ]
50
- #[ arg( long = "workload- iterations" , short = 'i' ) ]
50
+ #[ arg( long = "iterations" , short = 'i' ) ]
51
51
pub iterations : usize ,
52
52
53
53
/// The size of a single workload iteration, the number of changesets per commit.
54
54
#[ clap( default_value = "5000" ) ]
55
- #[ arg( long = "workload- size" , short = 's' ) ]
55
+ #[ arg( long = "size" , short = 's' ) ]
56
56
pub size : usize ,
57
57
58
58
/// Whether the size of each workload should be random or not.
59
59
///
60
- /// If specified, the size of each commit will be within 0..workload- size,
61
- /// otherwise it will always be workload- size.
60
+ /// If specified, the size of each commit will be within ` 0..size` ,
61
+ /// otherwise it will always be ` size` .
62
62
#[ clap( default_value = "false" ) ]
63
- #[ arg( long = "workload- random-size" ) ]
63
+ #[ arg( long = "random-size" ) ]
64
64
pub random_size : bool ,
65
65
66
66
/// When exercising a new commit, the probability of causing it to crash.
67
67
///
68
68
/// Accepted values are in the range of 0 to 100
69
69
#[ clap( default_value = "20" ) ]
70
70
#[ clap( value_parser=clap:: value_parser!( u8 ) . range( 0 ..=100 ) ) ]
71
- #[ arg( long = "workload- commit-crash" ) ]
71
+ #[ arg( long = "commit-crash" ) ]
72
72
pub crash : u8 ,
73
73
74
74
/// Instead of exercising a new commit, this is a probability of executing a rollback.
75
75
///
76
76
/// Accepted values are in the range of 0 to 100
77
77
#[ clap( default_value = "5" ) ]
78
78
#[ clap( value_parser=clap:: value_parser!( u8 ) . range( 0 ..=100 ) ) ]
79
- #[ arg( long = "workload- rollback" ) ]
79
+ #[ arg( long = "rollback" ) ]
80
80
pub rollback : u8 ,
81
81
82
82
/// The max amount of blocks involved in a rollback.
83
83
///
84
84
/// The effective number of blocks used for each rollback is randomly generated in the range
85
85
/// 0..max_rollback_blocks.
86
86
#[ clap( default_value = "10" ) ]
87
- #[ arg( long = "workload- max-rollback-blocks" ) ]
87
+ #[ arg( long = "max-rollback-blocks" ) ]
88
88
pub max_rollback_blocks : usize ,
89
89
90
90
/// Whether to ensure the correct application of the changest after every commit.
0 commit comments