Run quick benchmarks.
()
| 672 | |
| 673 | |
| 674 | async def run_quick_benchmarks(): |
| 675 | """Run quick benchmarks.""" |
| 676 | results = BenchmarkResults() |
| 677 | |
| 678 | print("Running quick benchmarks...") |
| 679 | |
| 680 | await benchmark_worker_streaming_throughput(results, chunk_size=64, num_chunks=1000) |
| 681 | await benchmark_worker_streaming_throughput(results, chunk_size=1024, num_chunks=1000) |
| 682 | await benchmark_arbiter_forwarding(results, num_chunks=1000) |
| 683 | await benchmark_streaming_latency(results, iterations=50) |
| 684 | |
| 685 | # Async client streaming benchmarks |
| 686 | await benchmark_async_client_streaming(results, chunk_size=1024, num_chunks=1000) |
| 687 | await benchmark_async_vs_sync_client_streaming(results, chunk_size=1024, num_chunks=1000) |
| 688 | |
| 689 | return results |
| 690 | |
| 691 | |
| 692 | async def run_full_benchmarks(): |
no test coverage detected