From af277e21733948df122ffc210343c9b54cade7a9 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 18 Aug 2026 01:57:02 +0900 Subject: test(process-executor): benchmark execute_async with criterion The `single` group compares the argv form against the string form, which goes through an extra `/bin/sh -c`; the `concurrent` group varies the job count around `max_jobs` so the semaphore throttle is visible as a throughput knee. `execute_async`'s futures are `!Send`, so they run on a current-thread runtime and overlap only through `join_all` within a single task. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/shirabe/Cargo.toml') diff --git a/crates/shirabe/Cargo.toml b/crates/shirabe/Cargo.toml index fb58f859..d3e425b2 100644 --- a/crates/shirabe/Cargo.toml +++ b/crates/shirabe/Cargo.toml @@ -40,9 +40,14 @@ tracing-subscriber.workspace = true url.workspace = true [dev-dependencies] +criterion.workspace = true mockall.workspace = true serial_test.workspace = true tempfile.workspace = true +[[bench]] +name = "process_executor" +harness = false + [lints] workspace = true -- cgit v1.3.1-4-g156e