MCPcopy Create free account
hub / github.com/avoidwork/tenso / main

Function main

benchmarks/rate-limiting.js:577–595  ·  view source on GitHub ↗

* Main execution function

()

Source from the content-addressed store, hash-verified

575 * Main execution function
576 */
577async function main () {
578 console.log("🔥 Rate Limiting Performance Benchmarks");
579
580 try {
581 benchmarkBasicRateLimit();
582 benchmarkDifferentLimits();
583 benchmarkWindowReset();
584 benchmarkHighConcurrency();
585 benchmarkRateOverride();
586 benchmarkRateCleanup();
587 testRateLimitMemoryUsage();
588 testRateLimitAccuracy();
589
590 console.log("\n✅ Rate limiting benchmarks completed\n");
591 } catch (error) {
592 console.error("❌ Benchmark failed:", error);
593 process.exit(1);
594 }
595}
596
597main();

Callers 1

rate-limiting.jsFile · 0.70

Calls 9

benchmarkBasicRateLimitFunction · 0.85
benchmarkDifferentLimitsFunction · 0.85
benchmarkWindowResetFunction · 0.85
benchmarkHighConcurrencyFunction · 0.85
benchmarkRateOverrideFunction · 0.85
benchmarkRateCleanupFunction · 0.85
testRateLimitMemoryUsageFunction · 0.85
testRateLimitAccuracyFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected