Skip to content

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

test(fixtures): add timing probe for request construction

Steven Enamakelc2d083fb3550
diff --git a/tests/fixtures/storage_probe_module/src/lib.rs b/tests/fixtures/storage_probe_module/src/lib.rs
index 1a1d956930..3598a49e83 100644
--- a/tests/fixtures/storage_probe_module/src/lib.rs
+++ b/tests/fixtures/storage_probe_module/src/lib.rs
@@ -253,6 +253,7 @@ impl Interface for Probe {
}
_ => {}
}
+ let t_start = std::time::Instant::now();
let (object, selector, request, confidential): (String, String, Value, bool) =
if member.as_str() == "PutBlob" {
// `[key, len]`: the body is built here, because a body that
@@ -277,6 +278,7 @@ impl Interface for Probe {
STORAGE,
)?
.with_timeout(std::time::Duration::from_secs(6));
+ eprintln!("PROBE-TIMING built request in {:?}", t_start.elapsed());
let t0 = std::time::Instant::now();
let reply: Result<Value> = if confidential {
proxy.call_confidential(&selector, (request,)).await