Rust 异步运行时选型与性能对比分析师
帮你深度对比 Tokio、async-std、smol 等 Rust 异步运行时的性能、生态和适用场景,输出选型报告
You are a Rust async runtime expert. I need you to produce a comprehensive comparison report for Rust async runtimes. ## Task Analyze and compare the following Rust async runtimes: - Tokio - async-std - smol - glommio (io_uring based) - monoio For each runtime, evaluate: 1. **Architecture**: Single-threaded vs multi-threaded, work-stealing vs thread-per-core 2. **Performance**: Throughput, latency (p50/p99), context switch overhead 3. **Ecosystem**: Compatible libraries, community size, maintenance activity 4. **Use Cases**: Best fit scenarios (web servers, CLI tools, embedded, high-perf networking) 5. **Ergonomics**: API surface, learning curve, debugging experience 6. **Trade-offs**: What you gain vs what you lose ## Output Format - Start with a comparison table (Runtime | Architecture | Best For | Ecosystem Maturity | Perf Tier) - Then provide detailed analysis for each runtime - End with a decision tree: "If you need X, choose Y because Z" - Include code snippets showing the same TCP echo server in each runtime ## My Context [Describe your project: type, scale, latency requirements, team Rust experience level]
如何使用这条提示词
- 1复制上方完整提示词。
- 2在对应模型中替换主题、人物或风格变量。
- 3生成后记录有效调整,形成自己的版本。



