{"id":19327556,"url":"https://github.com/deepflowio/smartencoding-benchmark","last_synced_at":"2026-01-28T17:35:30.533Z","repository":{"id":146245189,"uuid":"590817835","full_name":"deepflowio/smartencoding-benchmark","owner":"deepflowio","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-18T02:35:04.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T17:25:38.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deepflowio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-01-19T09:31:27.000Z","updated_at":"2024-11-18T02:35:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"2359bda7-27d3-4ed0-ba63-60cbbe96dd03","html_url":"https://github.com/deepflowio/smartencoding-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deepflowio/smartencoding-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fsmartencoding-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fsmartencoding-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fsmartencoding-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fsmartencoding-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deepflowio","download_url":"https://codeload.github.com/deepflowio/smartencoding-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deepflowio%2Fsmartencoding-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28847892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":[],"created_at":"2024-11-10T02:17:34.454Z","updated_at":"2026-01-28T17:35:30.505Z","avatar_url":"https://github.com/deepflowio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smartencoding-benchmark\n\n## 编译\n - make\n\n## 运行\n - 配置config.yaml\n - ./cktest -h \u003cclickhouse ip\u003e -p \u003cclickhouse port\u003e \n\n## 查看结果\n - 通过查询`system.parts`信息，可以获取表占用磁盘空间等。`select * from system.parts where database='test'`\n - 通过查询`system.parts_columns`信息，可以获取各列占用磁盘空间等\n  ```\nSELECT\n    column,\n    any(type),\n    formatReadableSize(sum(column_data_uncompressed_bytes)) AS `原始大小`,\n    formatReadableSize(sum(column_data_compressed_bytes)) AS `压缩大小`,\n    sum(rows)\nFROM system.parts_columns\nWHERE (database = 'test') AND (table = 'test')\nGROUP BY column\nORDER BY column ASC\n\n  ```\n## 工具说明\n  1. 配置需要写入的表结构\n      - 列名，类型，每列数据的取值范围等\n  2. 根据配置预先生成每列数据的取值范围数据池\n  3. 多线程实时从数据池中获取数据，并生成1行数据，发送到多个写入队列中(默认1个队列可以缓存100w条数据)\n  4. 多线程从写入队列读取数据(默认每次10w条),执行一次写入CK\n      - 可以根据配置的写入线程数和写入速率，控制写入速率\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepflowio%2Fsmartencoding-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeepflowio%2Fsmartencoding-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeepflowio%2Fsmartencoding-benchmark/lists"}