Skip to content

Commit c95fc76

Browse files
feat: use all cpus
1 parent 9c98f13 commit c95fc76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crescendo/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const TARGET_URL: &str = "http://127.0.0.1:8080";
1919

2020
#[tokio::main(worker_threads = 1)]
2121
async fn main() {
22-
let num_threads = num_cpus::get() as u64 / 2;
22+
let num_threads = num_cpus::get() as u64;
2323
let connections_per_thread = TOTAL_CONNECTIONS / num_threads;
2424

2525
if let Err(err) = utils::increase_nofile_limit(TOTAL_CONNECTIONS * 10) {

0 commit comments

Comments
 (0)