mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
Increase performance test threshold to 100ms (#1406)
This commit is contained in:
parent
9b2329e53c
commit
ec09310593
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue