Back to MCP directory
publicPublicdnsLocal runtime

goku

Goku是一个高性能、可扩展的HTTP负载测试工具,专为Web服务的基准测试和性能分析设计。它支持结构化实时指标和详细的性能分析,适用于工程师高效模拟和分析流量。

article

README

🚀 Goku - 高性能HTTP负载测试工具

Goku 是一款高性能、可扩展的 HTTP 负载测试工具,专为网络服务的基准测试和性能分析而设计。它借鉴了 DrillVegeta 等工具的优点,兼具现代功能与简洁特性,能助力工程师高效模拟和分析流量。

🚀 快速开始

Goku 是一款强大的工具,可帮助你对网络服务进行负载测试和性能分析。按照以下步骤,你可以轻松使用 Goku。

✨ 主要特性

  • 快速、可扩展的 HTTP 负载测试
  • 支持结构化实时指标
  • 详细的性能分析

📦 安装指南

自动下载(Linux、macOS、WSL)

你可以使用以下命令直接将 Goku 最新版本下载到当前目录:

curl -sSL https://raw.githubusercontent.com/jcaromiq/goku/v2.0.0/scripts/install.sh | sh

使用 Cargo 安装

cargo add goku-bench --features goku_bench/feature_name

手动下载和源码编译

  1. 克隆仓库:
git clone https://github.com/jcaromiq/goku.git
cd goku
  1. 编译项目:
cargo build --release
  1. 运行测试:
cargo test --release

📚 详细文档

版本信息

Goku 遵循 SemVer 2.0.0 规范。

贡献指南

有关贡献指南,请参阅 CONTRIBUTING.md 文件。

💻 使用示例

命令行选项

Goku 提供以下命令行选项: | 选项 | 描述 | |------|------| | -v, --verbose | 启用详细模式 | | -h, --help | 显示帮助信息并退出 | | --version | 显示程序版本信息 |

基础用法

goku-bench -c 50 -t 4 http://example.com/

高级用法

使用自定义请求体

goku-bench -c 50 -t 4 --request-body file.json http://example.com/

设置 HTTP 方法和头

goku-bench -c 50 -t 4 --method POST --header "Content-Type: application/json" --header "Authorization: Bearer token" http://example.com/api

输出示例

并发数:50
耗时:4 秒
总请求数:2000
平均响应时间:169.90099999999998 毫秒
最大响应时间:415 毫秒
最小响应时间:5 毫秒
第 95 百分位数:319 毫秒
第 99.9 百分位数:367 毫秒

📄 许可证

See LICENSE.

💗 捐赠

如果你对这个项目的工作感到满意,任何形式的捐赠都将不胜感激: "Buy Me A Coffee"

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client