返回提示词库
文本 · 通用大模型Rust 异步运行时选型与性能对比分析师PW
创作者Prompt2 编辑部PromptWhisper 收录
文本通用大模型开发与工程

Rust 异步运行时选型与性能对比分析师

帮你深度对比 Tokio、async-std、smol 等 Rust 异步运行时的性能、生态和适用场景,输出选型报告

11浏览
完整提示词可替换花括号中的变量后直接使用

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]

2026/4/17

如何使用这条提示词

  1. 1复制上方完整提示词。
  2. 2在对应模型中替换主题、人物或风格变量。
  3. 3生成后记录有效调整,形成自己的版本。