diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-18 01:57:02 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-18 01:57:02 +0900 |
| commit | af277e21733948df122ffc210343c9b54cade7a9 (patch) | |
| tree | a005a10977302daa69f35f9788b6db797dedc106 /crates/shirabe/Cargo.toml | |
| parent | 403671544a046f17439e1be8a56931c1904f86cd (diff) | |
| download | php-shirabe-af277e21733948df122ffc210343c9b54cade7a9.tar.gz php-shirabe-af277e21733948df122ffc210343c9b54cade7a9.tar.zst php-shirabe-af277e21733948df122ffc210343c9b54cade7a9.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/Cargo.toml')
| -rw-r--r-- | crates/shirabe/Cargo.toml | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
