Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

201 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memoryTest

Hits

Build and Release

内存测试模块 (Memory Test Module)

功能(Features)

  • 支持使用streammbw进行内存带宽测试 (无需root或admin权限)
  • 支持使用dd测试内存的读写IO (需要root权限)
  • 支持使用sysbench测试内存的顺序读写IO (需要root权限)
  • 支持使用winsat测试内存的读写性能 (需要admin权限)
  • 支持Go自身静态依赖注入ddstreammbw,使用时无额外环境依赖需求
  • -l指定输出的语言类型,可指定zhen,默认不指定时使用中文输出
  • -m指定测试的方法,可指定streamddsysbenchwinsatauto,默认不指定时按优先级自动选择测试方法
  • 全平台编译支持,支持无权限测试时优先尝试stream,若不可用再使用mbw程序模拟内存使用进行测试

注意:默认不自动安装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 (stream or dd or sysbench or winsat)
  -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@v0.0.10-20251218032900

测试图

stream测试

图片

dd测试

图片

winsat测试

1716466171182

mbw测试

f4cc8695e41070f9c393071c49315464

sysbench测试

图片

Releases

Used by

Contributors

Languages