Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: add timing instrumentation to storage probe fixture

Steven Enamakela615e1a5b086
diff --git a/tests/fixtures/storage_probe_module/src/lib.rs b/tests/fixtures/storage_probe_module/src/lib.rs
index 0cddd26c65..1a1d956930 100644
--- a/tests/fixtures/storage_probe_module/src/lib.rs
+++ b/tests/fixtures/storage_probe_module/src/lib.rs
@@ -277,11 +277,13 @@ impl Interface for Probe {
STORAGE,
)?
.with_timeout(std::time::Duration::from_secs(6));
+ let t0 = std::time::Instant::now();
let reply: Result<Value> = if confidential {
proxy.call_confidential(&selector, (request,)).await
} else {
proxy.call(&selector, (request,)).await
};
+ eprintln!("PROBE-TIMING call took {:?} -> {:?}", t0.elapsed(), reply.as_ref().map(|_| ()).map_err(|e| e.to_string()));
Ok(match reply {
Ok(value) => json!({ "ok": value }),
Err(Error::MethodFailed { name, message }) => {