{"id":20230982,"url":"https://github.com/bewaremypower/pulsar-client-cpp-perf","last_synced_at":"2025-08-29T03:43:04.430Z","repository":{"id":190142377,"uuid":"682004546","full_name":"BewareMyPower/pulsar-client-cpp-perf","owner":"BewareMyPower","description":"The performance tool for the Pulsar C++ client.","archived":false,"fork":false,"pushed_at":"2024-01-11T14:46:41.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-03T13:45:26.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/BewareMyPower.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-08-23T08:25:30.000Z","updated_at":"2024-01-11T14:29:52.000Z","dependencies_parsed_at":"2024-01-10T16:52:52.414Z","dependency_job_id":"3f0da44b-90bf-46ba-8304-dc5119a52f47","html_url":"https://github.com/BewareMyPower/pulsar-client-cpp-perf","commit_stats":null,"previous_names":["bewaremypower/pulsar-client-cpp-perf"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/BewareMyPower/pulsar-client-cpp-perf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BewareMyPower%2Fpulsar-client-cpp-perf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BewareMyPower%2Fpulsar-client-cpp-perf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BewareMyPower%2Fpulsar-client-cpp-perf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BewareMyPower%2Fpulsar-client-cpp-perf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BewareMyPower","download_url":"https://codeload.github.com/BewareMyPower/pulsar-client-cpp-perf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BewareMyPower%2Fpulsar-client-cpp-perf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272620250,"owners_count":24965509,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-14T07:44:44.213Z","updated_at":"2025-08-29T03:43:04.392Z","avatar_url":"https://github.com/BewareMyPower.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pulsar-client-cpp-perf\n\nThe **independent** performance tool for the Pulsar C++ client.\n\nThough you can also build the tool in the [official repository](https://github.com/apache/pulsar-client-cpp/tree/main/perf), this project don't require you to build the Pulsar C++ client library from source. You can install the client library from the pre-built binanry first, see [here](https://pulsar.apache.org/docs/3.1.x/client-libraries-cpp-setup/) for more details.\n\n## Requirements\n\n- A C++ compiler that supports C++11, like GCC \u003e= 4.8\n- CMake \u003e= 3.1\n- Boost (with the `program_options` component)\n\n## Build\n\nFirst, clone this repo with all submodules.\n\n```bash\ngit clone https://github.com/BewareMyPower/pulsar-client-cpp-perf.git\ngit submodule update --init --recursive\n```\n\nThen, build the tool with vcpkg.\n\n```bash\ncd pulsar-client-cpp-perf\n# CMAKE_BUILD_TYPE is required for now, there is a bug in pulsar-client-cpp's port\ncmake -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\nRun `./build/perfProducer` for how to use it. For example, the following command run a producer against a Pulsar broker that listens on 6650 port locally with the following configs:\n- Send 100000 messages per second, each message is 1 KiB by default.\n- The batch size is 1000.\n- The batch timeout is 1ms.\n\n```bash\n./build/perfProducer --service-url pulsar://localhost:6650 \\\n  --rate 100000 \\\n  --batch-size=1000 \\\n  --max-batch-publish-delay-in-ms=1 \\\n  my-topic\n```\n\n## Verify the version\n\nModify [vcpkg.json](./vcpkg.json) to test another version of `pulsar-client-cpp`.\n\n\u003e **Note**:\n\u003e\n\u003e Currently only 3.4.2 is available in vcpkg.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbewaremypower%2Fpulsar-client-cpp-perf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbewaremypower%2Fpulsar-client-cpp-perf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbewaremypower%2Fpulsar-client-cpp-perf/lists"}