Skip to content

Commit

Permalink
create-measurements: add initial logging# Please enter the commit mes…
Browse files Browse the repository at this point in the history
…sage for your changes. Lines starting
  • Loading branch information
kahlstrm committed May 11, 2024
1 parent 432a0f6 commit f542bc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/create_measurements.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ fn generate_measurements<W: Write + Send + 'static>(
) -> std::io::Result<()> {
let start = Instant::now();
let par_count = std::thread::available_parallelism().unwrap();
println!(
"Starting generating {} measurements with {} threads",
size, par_count
);
let task_size = size / par_count;
let mut tasks = vec![task_size; par_count.into()];
for i in 0..(size % par_count) {
Expand Down

0 comments on commit f542bc1

Please sign in to comment.