* Main execution function
()
| 575 | * Main execution function |
| 576 | */ |
| 577 | async 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 | |
| 597 | main(); |
no test coverage detected