https://github.com/oneclickvirt/memorytest
内存测试模块 (Memory Test Module)
https://github.com/oneclickvirt/memorytest
dd goecs memory ram sysbench winsat
Last synced: 3 months ago
JSON representation
内存测试模块 (Memory Test Module)
- Host: GitHub
- URL: https://github.com/oneclickvirt/memorytest
- Owner: oneclickvirt
- License: apache-2.0
- Created: 2024-05-21T13:17:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-29T03:48:04.000Z (3 months ago)
- Last Synced: 2025-06-29T04:31:21.146Z (3 months ago)
- Topics: dd, goecs, memory, ram, sysbench, winsat
- Language: Go
- Homepage: https://github.com/oneclickvirt/ecs
- Size: 40 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# memoryTest
[](https://hits.spiritlhl.net)
[](https://github.com/oneclickvirt/memoryTest/actions/workflows/main.yml)
内存测试模块 (Memory Test Module)
# 功能(Features)
- [x] 支持使用```sysbench```测试内存的顺序读写IO
- [x] 支持使用```dd```测试内存的读写IO
- [x] 支持使用```winsat```测试内存的读写性能
- [x] 支持Go自身静态依赖注入[dd](https://github.com/oneclickvirt/dd),使用时无额外环境依赖需求
- [x] 以```-l```指定输出的语言类型,可指定```zh```或```en```,默认不指定时使用中文输出
- [x] 以```-m```指定测试的方法,可指定```sysbench```或```dd```或```winsat```,默认不指定时使用```sysbench```进行测试
- [x] 全平台编译支持,支持无权限测试时使用自编译mbw程序模拟大内存COPY块测试内存性能注意:默认不自动安装```sysbench```组件,如需使用请自行安装后再使用本项目,如```apt update && apt install sysbench -y```
# 使用(Usage)
下载及安装
```
curl https://raw.githubusercontent.com/oneclickvirt/memoryTest/main/mt_install.sh -sSf | bash
```使用
```
memorytest
```或
```
./memorytest
```进行测试
```
Usage: memorytest [options]
-h Show help information
-l string
Language parameter (en or zh)
-log
Enable logging
-m string
Specific Test Method (sysbench or dd)
-v show version
```更多架构请查看 https://github.com/oneclickvirt/memorytest/releases/tag/output
## 卸载
```
rm -rf /root/memorytest
rm -rf /usr/bin/memorytest
```## 在Golang中使用
```
go get github.com/oneclickvirt/memorytest@0.0.7v-20250701113824
```## 测试图
sysbench测试

dd测试

winsat测试

mbw测试
