#mqtt #benchmark #broker #tool #cli

app mqtt-benchmark

A simple MQTT (broker) benchmarking tool

5 releases

0.2.2 May 1, 2024
0.2.1 Apr 30, 2024
0.1.2 Feb 12, 2024
0.1.1 Jan 31, 2024

#327 in Command line utilities

Download history 2/week @ 2024-01-30 15/week @ 2024-02-06 71/week @ 2024-02-13 25/week @ 2024-02-20 33/week @ 2024-02-27 1/week @ 2024-03-05 14/week @ 2024-03-12 9/week @ 2024-03-26 36/week @ 2024-04-02 425/week @ 2024-04-30

425 downloads per month

Apache-2.0

16KB
212 lines

mqtt-benchmark

A simple MQTT (broker) benchmarking tool.

Usage

cargo install mqtt-benchmark

Help

$ mqtt-benchmark  --help
A simple MQTT (broker) benchmarking tool.

Usage: mqtt-benchmark [OPTIONS]

Options:
  -c, --client-id <CLIENT_ID>    MQTT client id [default: mqtt-benchmark]
  -b, --broker <BROKER>          MQTT broker [default: 127.0.0.1:1883]
  -t, --topic <TOPIC>            MQTT topic [default: test]
  -u, --username <USERNAME>      MQTT username
  -p, --password <PASSWORD>      MQTT password
  -q, --qos <QOS>                MQTT qos [default: 1]
  -o, --one-topic                Only one topic is sent data
  -P, --payload <PAYLOAD>        MQTT payload, allowed to be empty
  -s, --size <SIZE>              The number of data entries generated by each client [default: 10000]
  -C, --client-num <CLIENT_NUM>  The number of MQTT clients that are created [default: 10]
  -h, --help                     Print help
  -V, --version                  Print version

Dependencies

~7–20MB
~257K SLoC