Skip to content

Commit 2c0d9dd

Browse files
authored
Make small test keep transaction generated order (#17681)
1 parent a8ff58b commit 2c0d9dd

File tree

1 file changed

+6
-3
lines changed
  • execution/executor-benchmark/src

1 file changed

+6
-3
lines changed

execution/executor-benchmark/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,11 @@ pub enum SingleRunMode {
520520
},
521521
}
522522

523-
// Optional more detailed configuration.
523+
/// Optional more detailed configuration.
524524
pub struct SingleRunAdditionalConfigs {
525+
/// If num_generator_workers=1 then order in which transactions are generated
526+
/// is kept in the block, otherwise transactions from different workers are
527+
/// stitched together in arbitrary order
525528
pub num_generator_workers: usize,
526529
pub split_stages: bool,
527530
}
@@ -575,8 +578,8 @@ pub fn run_single_with_default_params(
575578
},
576579
};
577580
let num_generator_workers = match mode {
578-
SingleRunMode::TEST
579-
| SingleRunMode::BENCHMARK {
581+
SingleRunMode::TEST => 1,
582+
SingleRunMode::BENCHMARK {
580583
additional_configs: None,
581584
..
582585
} => 4,

0 commit comments

Comments
 (0)