{"id":34209695,"url":"https://github.com/oneclickvirt/stream","last_synced_at":"2026-03-13T15:03:33.538Z","repository":{"id":316357107,"uuid":"1063008661","full_name":"oneclickvirt/stream","owner":"oneclickvirt","description":"一个嵌入stream依赖的golang库(A golang library with embedded stream dependencies) ","archived":false,"fork":false,"pushed_at":"2025-09-24T15:40:02.000Z","size":3534,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-19T01:16:51.237Z","etag":null,"topics":["goecs","static","stream","windwos"],"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":"mit","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-24T03:34:23.000Z","updated_at":"2025-09-24T15:40:06.000Z","dependencies_parsed_at":"2025-09-25T22:30:58.554Z","dependency_job_id":null,"html_url":"https://github.com/oneclickvirt/stream","commit_stats":null,"previous_names":["oneclickvirt/stream"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oneclickvirt/stream","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oneclickvirt","download_url":"https://codeload.github.com/oneclickvirt/stream/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oneclickvirt%2Fstream/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30469135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T11:00:43.441Z","status":"ssl_error","status_checked_at":"2026-03-13T11:00:23.173Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["goecs","static","stream","windwos"],"created_at":"2025-12-15T20:50:46.268Z","updated_at":"2026-03-13T15:03:33.524Z","avatar_url":"https://github.com/oneclickvirt.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stream\n\n一个嵌入stream依赖的golang库(A golang library with embedded stream dependencies)\n\n## 关于 About\n\n这个库提供了对STREAM内存带宽基准测试工具的Go语言封装。STREAM基准测试是一个简单的合成基准程序，用于测量可持续的内存带宽（MB/s）和简单向量内核的相应计算速率。\n\nThis library provides a Go wrapper for the STREAM memory bandwidth benchmark tool. The STREAM benchmark is a simple synthetic benchmark program that measures sustainable memory bandwidth (in MB/s) and the corresponding computation rate for simple vector kernels.\n\n## 特性 Features\n\n- 支持多平台：Linux (amd64, arm64, 386, arm等), macOS (arm64), Windows (amd64, 386, arm64)\n- 自动检测并使用系统安装的stream，或使用嵌入的二进制文件\n- 自动清理临时文件\n- Multi-platform support: Linux (amd64, arm64, 386, arm, etc.), macOS (arm64), Windows (amd64, 386, arm64)\n- Automatically detects and uses system-installed stream, or uses embedded binaries\n- Automatic cleanup of temporary files\n\n## 安装 Installation\n\n```bash\ngo get github.com/oneclickvirt/stream@v0.0.2-20250924154001\n```\n\n## 使用方法 Usage\n\n```go\npackage main\n\nimport (\n    \"log\"\n    \"github.com/oneclickvirt/stream\"\n)\n\nfunc main() {\n    // 获取stream命令路径\n    // Get stream command path\n    streamCmd, tempFile, err := stream.GetStream()\n    if err != nil {\n        log.Fatalf(\"Failed to get stream: %v\", err)\n    }\n\n    // 如果使用了临时文件，确保清理\n    // Clean up temporary files if used\n    if tempFile != \"\" {\n        defer stream.CleanStream(tempFile)\n    }\n\n    // 执行stream基准测试\n    // Execute stream benchmark\n    err = stream.ExecuteStream(streamCmd, []string{})\n    if err != nil {\n        log.Fatalf(\"Failed to execute stream: %v\", err)\n    }\n}\n```\n\n## API文档 API Documentation\n\n### 函数 Functions\n\n#### `GetStream() (string, string, error)`\n\n获取可用的stream命令路径。\n\nGet the available stream command path.\n\n**返回值 Returns:**\n- `string`: stream命令的路径 (Path to the stream command)\n- `string`: 临时文件路径（如果使用了嵌入的二进制文件）(Temporary file path if using embedded binary)\n- `error`: 错误信息 (Error information)\n\n#### `ExecuteStream(streamPath string, args []string) error`\n\n执行stream命令。\n\nExecute the stream command.\n\n**参数 Parameters:**\n- `streamPath`: stream命令的路径 (Path to the stream command)\n- `args`: 传递给stream的参数 (Arguments to pass to stream)\n\n#### `CleanStream(tempFile string) error`\n\n清理临时文件。\n\nClean up temporary files.\n\n**参数 Parameters:**\n- `tempFile`: 需要清理的临时文件路径 (Path to temporary file to clean up)\n\n## 平台支持 Platform Support\n\n库包含了以下平台的预编译二进制文件：\n\nThe library includes precompiled binaries for the following platforms:\n\n### Linux\n- amd64 (x86_64)\n- 386 (x86 32-bit) \n- arm64 (ARMv8)\n- arm (ARMv7)\n- armv6 (ARMv6)\n- riscv64 (RISC-V 64-bit)\n- ppc64le (PowerPC64 little-endian)\n- ppc64 (PowerPC64 big-endian)\n- mips64le (MIPS64 little-endian)\n- mips64 (MIPS64 big-endian)\n- mipsle (MIPS little-endian)\n- mips (MIPS big-endian)\n- s390x (IBM System z)\n\n### macOS\n- arm64 (Apple Silicon)\n\n### Windows\n- amd64 (x86_64)\n- 386 (x86 32-bit)\n- arm64\n\n## 许可证 License\n\nMIT License \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foneclickvirt%2Fstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foneclickvirt%2Fstream/lists"}