Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Increase performance test threshold to 100ms (#1406)

Jeremiah Lowinec09310593b3
diff --git a/tests/experimental/server/openapi/test_performance_comparison.py b/tests/experimental/server/openapi/test_performance_comparison.py
index d616c4334..cf326180c 100644
--- a/tests/experimental/server/openapi/test_performance_comparison.py
+++ b/tests/experimental/server/openapi/test_performance_comparison.py
@@ -197,14 +197,14 @@ class TestPerformanceComparison:
# Both implementations should be very fast for moderate specs
# The key achievement is eliminating the 100-200ms latency issue for serverless
- max_acceptable_time = 0.05 # 50ms
+ max_acceptable_time = 0.1 # 100ms
print(f"Legacy performance: {'βœ“' if legacy_avg < max_acceptable_time else 'βœ—'}")
print(f"New performance: {'βœ“' if new_avg < max_acceptable_time else 'βœ—'}")
- # New implementation should be under 50ms for reasonable specs (serverless requirement)
+ # New implementation should be under 100ms for reasonable specs (serverless requirement)
assert new_avg < max_acceptable_time, (
- f"New implementation should initialize in under 50ms, got {new_avg:.4f}s"
+ f"New implementation should initialize in under 100ms, got {new_avg:.4f}s"
)
# Legacy might be slightly faster or slower on small specs, but both should be fast