
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
mqtt-bench for ruby
This project is deeply inspired by mqtt-bench. Ruby cannot provide the same performance as golang. This code is provided just for debugging purposes.
gem install ruby-mqtt-bench
ruby-mqtt-bench conf/mqtt_bench.conf
The configuration can be modified by editing mqtt_bench.conf as follows. mqtt_opts are passed to ruby-mqtt and bench_opts are used locally in ruby-mqtt-bench.
vi conf/mqtt_bench.conf
{
"mqtt_opts": {
"host": "127.0.0.1",
"port": 1883,
"keep_alive": 15
},
"bench_opts": {
"topic": "mqtt_bench",
"num_clients": 128,
"data_size": 64,
"num_msgs": 1000,
"interval": 0,
"time_key": "time",
"timestamp": "timestamp"
}
}
Message is created in JSON format. Because each message has minimum fields, minimum message size can be calculated as follows:
Example message:
{:cid=>"001", :data=>"", :mid=>"00001", :time=>1455754303515}
Field name and symbols have 50 bytes. "data" field size can be specified in configuration. "cid" (client id) and "mid" (message id) have number of digits with maximum number specified in configuration (num_clients and num_msgs. Time to send a message is recorded in the message as time field in ms.
FAQs
Unknown package
We found that ruby-mqtt-bench demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.