performance-metrics: Add AIO completion drain micro benchmark

Add micro_block_raw_aio_drain_128_us and
micro_block_raw_aio_drain_256_us tests that submit N AIO writes
to a temporary file, wait for the eventfd signal, then time how
long it takes to drain all completions via next_completed_request().

This measures per completion syscall overhead and provides a
baseline before any batching optimizations.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-14 15:28:29 +01:00
committed by Bo Chen
parent be6f63a740
commit 00957fa9db
4 changed files with 87 additions and 1 deletions

2
Cargo.lock generated
View File

@@ -1596,8 +1596,10 @@ dependencies = [
name = "performance-metrics"
version = "0.1.0"
dependencies = [
"block",
"clap",
"dirs",
"libc",
"serde",
"serde_json",
"test_infra",