Publish curated Knowledge Hub source from 2ed833f290b439a7bc91e5fd19b042c269e3bee9

This commit is contained in:
Public Source Publisher committed 2026-10-03 17:07:21 +00:00
1 parent 10f2edcd29
commit 59f15b2d08
218 files changed
+23995 -1849

No files matched your search

@@ -123,6 +123,7 @@ public sealed class SearchFullScaleTests(PostgresContainerFixture postgres) : Ow
// --- latency: p50/p95/p99 across representative query shapes ---
report.AppendLine();
report.AppendLine("Latency (ms), 30 samples per query shape:");
report.AppendLine("Search samples are paced at 1.1 seconds outside the stopwatch to respect the 60/minute HTTP budget.");
var measurements = new[]
{
await MeasureAsync(client, report, "common term (\"documentatie\")", "/api/v1/search?q=documentatie"),
@@ -294,6 +295,11 @@ public sealed class SearchFullScaleTests(PostgresContainerFixture postgres) : Ow
var samples = new List<double>(SampleCount);
for (var i = 0; i < SampleCount; i++)
{
// This is a latency benchmark, not an abuse-limit benchmark. Keep the
// real production limiter enabled and pace searches below its 60/min
// budget; waiting is deliberately outside the unchanged latency bound.
if (path.StartsWith("/api/v1/search?", StringComparison.Ordinal))
await Task.Delay(TimeSpan.FromMilliseconds(1100));
var stopwatch = Stopwatch.StartNew();
using var response = await client.GetAsync(path);
stopwatch.Stop();