8000 GitHub - oneclickvirt/memorytest: 内存测试模块 (Memory Test Module)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

oneclickvirt/memorytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memoryTest

Hits

Build and Release

内存测试模块 (Memory Test Module)

功能(Features)

  • 支持使用sysbench测试内存的顺序读写IO
  • 支持使用dd测试内存的读写IO
  • 支持使用winsat测试内存的读写性能
  • 支持Go自身静态依赖注入dd,使用时无额外环境依赖需求
  • -l指定输出的语言类型,可指定zhen,默认不指定时使用中文输出
  • -m指定测试的方法,可指定sysbenchddwinsat,默认不指定时使用sysbench进行测试
  • 全平台编译支持,支持无权限测试时使用自编译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测试

1716466171182

mbw测试

f4cc8695e41070f9c393071c49315464

Contributors 3

  •  
  •  
  •  
0