Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
test(auth): lower the concurrent-token throughput floor to 200 ops/second
Lincoln Steinf3402fe9c7b8
diff --git a/tests/app/services/auth/test_performance.py b/tests/app/services/auth/test_performance.pyindex ad033ac84c..f722c45867 100644--- a/tests/app/services/auth/test_performance.py+++ b/tests/app/services/auth/test_performance.py@@ -194,8 +194,14 @@ class TestTokenPerformance:ops_per_second = num_operations / elapsed_timeprint(f"Concurrent token operations: {ops_per_second:.0f} ops/second")- # Should handle at least 1000 operations per second- assert ops_per_second > 1000, f"Only {ops_per_second:.0f} ops/second"+ # A floor for catching gross regressions (a bcrypt hash, a network round+ # trip or asymmetric crypto landing in the token path all cost 1-2 orders+ # of magnitude), NOT a throughput target. Because the GIL serializes the+ # signing work, this measures the runner's thread scheduling more than+ # token cost: it reaches ~30k ops/second on a developer machine but only+ # ~1k on a contended CI runner, so the previous floor of 1000 sat exactly+ # at the CI measurement floor and failed there roughly one run in five.+ assert ops_per_second > 200, f"Only {ops_per_second:.0f} ops/second"class TestAuthenticationOverhead: