{"id":21306938,"url":"https://github.com/oneclickvirt/memorytest","last_synced_at":"2025-07-05T10:39:05.608Z","repository":{"id":241210952,"uuid":"803834550","full_name":"oneclickvirt/memorytest","owner":"oneclickvirt","description":"内存测试模块 (Memory Test Module) ","archived":false,"fork":false,"pushed_at":"2025-06-29T03:48:04.000Z","size":41903,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-29T04:31:21.146Z","etag":null,"topics":["dd","goecs","memory","ram","sysbench","winsat"],"latest_commit_sha":null,"homepage":"https://github.com/oneclickvirt/ecs","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oneclickvirt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-05-21T13:17:06.000Z","updated_at":"2025-06-29T03:48:07.000Z","dependencies_parsed_at":"2024-05-23T03:24:26.095Z","dependency_job_id":"a2cabe5e-ac57-4063-b19d-f1684b04cff7","html_url":"https://github.com/oneclickvirt/memorytest","commit_stats":null,"previous_names":["oneclickvirt/memorytest"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/oneclickvirt/memorytest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fmemorytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fmemorytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fmemorytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fmemorytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneclickvirt","download_url":"https://codeload.github.com/oneclickvirt/memorytest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fmemorytest/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262538611,"owners_count":23325813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dd","goecs","memory","ram","sysbench","winsat"],"created_at":"2024-11-21T16:29:01.640Z","updated_at":"2025-07-05T10:39:05.602Z","avatar_url":"https://github.com/oneclickvirt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# memoryTest\n\n[![Hits](https://hits.spiritlhl.net/memorytest.svg?action=hit\u0026title=Hits\u0026title_bg=%23555555\u0026count_bg=%230eecf8\u0026edge_flat=false)](https://hits.spiritlhl.net)\n\n[![Build and Release](https://github.com/oneclickvirt/memoryTest/actions/workflows/main.yml/badge.svg)](https://github.com/oneclickvirt/memoryTest/actions/workflows/main.yml)\n\n内存测试模块 (Memory Test Module) \n\n# 功能(Features)\n\n- [x] 支持使用```sysbench```测试内存的顺序读写IO\n- [x] 支持使用```dd```测试内存的读写IO\n- [x] 支持使用```winsat```测试内存的读写性能\n- [x] 支持Go自身静态依赖注入[dd](https://github.com/oneclickvirt/dd)，使用时无额外环境依赖需求\n- [x] 以```-l```指定输出的语言类型，可指定```zh```或```en```，默认不指定时使用中文输出\n- [x] 以```-m```指定测试的方法，可指定```sysbench```或```dd```或```winsat```，默认不指定时使用```sysbench```进行测试\n- [x] 全平台编译支持，支持无权限测试时使用自编译mbw程序模拟大内存COPY块测试内存性能\n\n注意：默认不自动安装```sysbench```组件，如需使用请自行安装后再使用本项目，如```apt update \u0026\u0026 apt install sysbench -y```\n\n# 使用(Usage)\n\n下载及安装\n\n```\ncurl https://raw.githubusercontent.com/oneclickvirt/memoryTest/main/mt_install.sh -sSf | bash\n```\n\n使用\n\n```\nmemorytest\n```\n\n或\n\n```\n./memorytest\n```\n\n进行测试\n\n```\nUsage: memorytest [options]\n  -h    Show help information\n  -l string\n        Language parameter (en or zh)\n  -log\n        Enable logging\n  -m string\n        Specific Test Method (sysbench or dd)\n  -v    show version\n```\n\n更多架构请查看 https://github.com/oneclickvirt/memorytest/releases/tag/output\n\n## 卸载\n\n```\nrm -rf /root/memorytest\nrm -rf /usr/bin/memorytest\n```\n\n## 在Golang中使用\n\n```\ngo get github.com/oneclickvirt/memorytest@0.0.7v-20250701113824\n```\n\n## 测试图\n\nsysbench测试\n\n![图片](https://github.com/oneclickvirt/memoryTest/assets/103393591/741689a2-7887-4cec-9df5-c8e309b2dd84)\n\ndd测试\n\n![图片](https://github.com/oneclickvirt/memoryTest/assets/103393591/34de9add-dbf6-44dd-91cc-b7102de66d3f)\n\nwinsat测试\n\n![1716466171182](https://github.com/oneclickvirt/memoryTest/assets/103393591/c8d38d4e-7357-4c27-b55b-4703805a5cb9)\n\nmbw测试\n\n![f4cc8695e41070f9c393071c49315464](https://github.com/user-attachments/assets/10538fb0-3d4e-4118-b248-8ccfd6a09e24)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fmemorytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneclickvirt%2Fmemorytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fmemorytest/lists"}