nix(loadtest): run more requests in jwt-cache test

We don't need to restrict us to run every request once. Instead we can
run as many as possible within 60s by removing the `-lazy` flag.

This also allows us to generate fewer targets, because vegeta will do
the repetition for us.
This commit is contained in:
Wolfgang Walther
2026-06-26 19:33:51 +00:00
parent 07a9752866
commit dcc99040d6
2 changed files with 3 additions and 6 deletions
+2 -5
View File
@@ -77,8 +77,7 @@ def main():
jwks_path.write_text(jwks.export())
print(f"Created JWKSet on {jwks_path}")
nsamples = 500 # per algorithm
ntargets = 100000
ntargets = 1000
print(f"Generating {ntargets} targets...")
@@ -86,10 +85,8 @@ def main():
lines = []
hs_targets = [generate_target(now, hs) for _ in range(nsamples)]
rsa_targets = [generate_target(now, rsa) for _ in range(nsamples)]
for i in range(ntargets):
target = random.choice(hs_targets if i % 2 == 0 else rsa_targets)
target = generate_target(now, hs if i % 2 == 0 else rsa)
lines.extend(target)
with open(targets_path, "w") as f: