# test_new_nc **Repository Path**: mr-ming/test_new_nc ## Basic Information - **Project Name**: test_new_nc - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-17 - **Last Updated**: 2026-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 基于提供的代码结构,这个项目看起来是一个 HTTP 性能测试工具,用于测试不同端口的网络请求性能。 # HTTP 端口性能测试工具 这是一个用于测试 HTTP 请求性能的工具,支持对不同端口进行并发压力测试,并比较性能差异。 ## 功能特性 - **单端口性能测试** - 测试单个 URL 的并发请求性能 - **多端口交替测试** - 在多个端口之间交替发送请求,比较不同端口的性能表现 - **并发控制** - 支持自定义并发数量和请求次数 - **性能对比** - 提供详细的性能对比结果输出 ## 依赖 - Python 3.10+ - aiohttp ## 安装 ```bash pip install aiohttp ``` ## 使用方法 运行主程序进行性能测试: ```bash python main.py ``` 或在 Python 代码中调用: ```python import asyncio from main import main asyncio.run(main()) ``` ## 配置 在 `config.py` 和 `request_params.py` 中配置请求参数、目标主机和端口等。 ## 测试结果 项目包含以下测试结果文件: - `test_result(2026-04-15).txt` - `test_result(2026-04-16).txt` ## 项目结构 ``` . ├── config.py # 配置文件 ├── main.py # 主程序入口 ├── request_params.py # 请求参数配置 ├── pyproject.toml # 项目配置 └── test_result*.txt # 测试结果记录 ```