Giter VIP home page Giter VIP logo

mqtt-benchmark's People

Contributors

enobufs avatar krylovsk avatar linux4life798 avatar misiu avatar scottfp avatar sreekesh93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mqtt-benchmark's Issues

--count ignored, default 1?

I am subscribed to the topic I am benchmarking.
with --count 30000 and --clients 1 the benchmark finishes almost instantly and the subscribing client sees one message come through the pipe.

The documents show the default being 100 messages. Removing --count all together still shows only one message coming through the broker to subscribers.

Side note, any benchmarking with more than one client results in: Msg time std (ms): NaN

Network Error : %!s(<nil>)

No idea what this is. I can successfully connect programmatically using a node.js script with the same parameters...
What's wrong?

./mqtt-benchmark --broker "tcp://staging.broker.aritronix.com:8883" --clients 1 --qos 1 --count 50 --username *** --password "***"
2021/06/30 10:31:23 Starting client  0
2021/06/30 10:31:24 CLIENT 0 had error connecting to the broker: Network Error : %!s(<nil>)

Thanks.

Unable to install...

Sorry, I'm not a Go developer and the most basic instructions do not work.
On Mac, I ran:

- brew install go
- go install github.com/krylovsk/mqtt-benchmark@main
- ./mqtt-benchmark -h

There is no such file as mqtt-benchmark in this folder. Where is it?

Thanks.

How is the max connection?

2020/01/10 10:30:45 Starting client 252
2020/01/10 10:30:45 Starting client 253
2020/01/10 10:30:45 Starting client 254
2020/01/10 10:30:45 Starting client 255
2020/01/10 10:30:45 CLIENT 177 had error connecting to the broker: Network Error : dial tcp 52.221.235.39:1883: socket: too many open files
2020/01/10 10:30:45 CLIENT 176 had error connecting to the broker: Network Error : dial tcp 52.221.235.39:1883: socket: too many open files
2020/01/10 10:30:45 CLIENT 178 had error connecting to the broker: Network Error : dial tcp 52.221.235.39:1883: socket: too many open files
2020/01/10 10:30:45 CLIENT 175 had error connecting to the broker: Network Error : dial tcp 52.221.235.39:1883: socket: too many open files

How to make a websocket test?

i tried to modify the following cmd:
mqtt-benchmark --broker tcp://myhost:1883 --count 100 --size 100 --clients 100 --qos 2 --format text

to:
mqtt-benchmark --broker ws://myhost:8083 --count 100 --size 100 --clients 100 --qos 2 --format text

but got errors like:
2020/08/09 02:13:35 Starting client 95
2020/08/09 02:13:35 Starting client 96
2020/08/09 02:13:35 Starting client 97
2020/08/09 02:13:35 Starting client 98
2020/08/09 02:13:35 Starting client 99
2020/08/09 02:13:36 CLIENT 48 had error connecting to the broker: Network Error : websocket: bad handshake
2020/08/09 02:13:36 CLIENT 55 had error connecting to the broker: Network Error : websocket: bad handshake
2020/08/09 02:13:36 CLIENT 98 had error connecting to the broker: Network Error : websocket: bad handshake
2020/08/09 02:13:36 CLIENT 30 had error connecting to the broker: Network Error : websocket: bad handshake
2020/08/09 02:13:36 CLIENT 31 had error connecting to the broker: Network Error : websocket: bad handshake
2020/08/09 02:13:36 CLIENT 72 had error connecting to the broker: Network Error : websocket: bad handshake
......

so, i was wondering hot to make a successful websocket test?

Add --connection-duration argument to specify the duration of MQTT connections

Would it be possible to add a new command-line argument to the mqtt-benchmark tool, like:

mqtt-benchmark --connection-duration 10000

When specified, mqtt-benchmark would keep the connections open for all clients for the specified duration, in this case, 10 seconds. This would allow users to customize the connection duration for benchmarking purposes and better understand how the MQTT broker performs under different connection durations.

Add support for placeholders in topic

It would be handy to have placeholders in the topic field.
For example "/topic/%i" become "/topic/1" when connected by a client with ID 1.

Client ID would be one field. A random unique number would be also nice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.