{"id":37861778,"url":"https://github.com/wxiao1002/mqtt-bench","last_synced_at":"2026-01-16T16:32:32.806Z","repository":{"id":156052925,"uuid":"629360176","full_name":"wxiao1002/mqtt-bench","owner":"wxiao1002","description":"MQTT client for bench broker.MQTT Broker 发布消息测试工具","archived":false,"fork":false,"pushed_at":"2023-09-21T01:49:02.000Z","size":56,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-29T18:14:20.505Z","etag":null,"topics":["benchmarking","iot","mqtt-benchmark","mqtt-client","mqtt-protocol"],"latest_commit_sha":null,"homepage":"","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/wxiao1002.png","metadata":{"files":{"readme":"README-en.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}},"created_at":"2023-04-18T06:49:08.000Z","updated_at":"2023-12-14T02:16:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff5dfe9a-85ea-4305-950b-86a5e1cecd24","html_url":"https://github.com/wxiao1002/mqtt-bench","commit_stats":{"total_commits":23,"total_committers":1,"mean_commits":23.0,"dds":0.0,"last_synced_commit":"ab371e6fa3f1e21f1e4514e99d8f0e8a63925a16"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wxiao1002/mqtt-bench","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiao1002%2Fmqtt-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiao1002%2Fmqtt-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiao1002%2Fmqtt-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiao1002%2Fmqtt-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wxiao1002","download_url":"https://codeload.github.com/wxiao1002/mqtt-bench/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wxiao1002%2Fmqtt-bench/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28479910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["benchmarking","iot","mqtt-benchmark","mqtt-client","mqtt-protocol"],"created_at":"2026-01-16T16:32:32.015Z","updated_at":"2026-01-16T16:32:32.797Z","avatar_url":"https://github.com/wxiao1002.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT Bench\n  MQTT publish message test tool\n\n  ## Quick start\n\n  ### Compiled package\n- Download the corresponding version of the package through https://github.com/wxiao1002/mqtt-bench/releases\n- Run and pass in parameters, the following is a linux demonstration\n```\n./mqtt-bench-linux -csvPath /root/clients.csv -broker tcp://localhost:1883 -clients 1000 -benchmarkTime 20 -messageInterval 1\n```\n- The above demonstration is to read the /root/clients.csv file to parse the username and password, generate 1000 clients and connect to tcp://localhost:1883, and publish a message at a frequency of 1 second for 20 minutes\n\n### Source code running\n- git clone https://github.com/wxiao1002/mqtt-bench.git\n- run the code\n\n```\ngo run main.go -csvPath /root/clients.csv -broker tcp://localhost:1883 -clients 1000 -benchmarkTime 20 -messageInterval 1\n```\n### Parameter analysis\n- broker: mqtt broker address\n- csvPath: read user password address, first column user, second column password\n- clients: how many connections are created, the number read by csv is greater than or equal to this value\n- benchmarkTime: pressure test time, starting from minute\n- messageInterval: the time interval for producing messages, in seconds\n- topic: publish topic, if it is empty, it will be api/{username}/attributes, username is a placeholder and will be automatically replaced with username\n\n# operation result\n\n[![pPdN091.png](https://s1.ax1x.com/2023/08/29/pPdN091.png)](https://imgse.com/i/pPdN091)\n\n# packaging\n- sh build/linux.sh\t\n- sh build/linux_arm.sh \n- sh build/windows.sh  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxiao1002%2Fmqtt-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwxiao1002%2Fmqtt-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwxiao1002%2Fmqtt-bench/lists"}