Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MF-295 add mqtt benchmark tool #817

Merged
merged 27 commits into from
Aug 13, 2019
Merged

MF-295 add mqtt benchmark tool #817

merged 27 commits into from
Aug 13, 2019

Conversation

mteodor
Copy link
Contributor

@mteodor mteodor commented Aug 6, 2019

What does this do?

benchmark mqtt broker

Which issue(s) does this PR fix/relate to?

Resolves #295

Yes

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
@codecov-io
Copy link

codecov-io commented Aug 6, 2019

Codecov Report

Merging #817 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #817   +/-   ##
=======================================
  Coverage   85.57%   85.57%           
=======================================
  Files          72       72           
  Lines        4701     4701           
=======================================
  Hits         4023     4023           
  Misses        442      442           
  Partials      236      236

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9a78b11...e83b546. Read the comment docs.

benchmark/README.md Outdated Show resolved Hide resolved
benchmark/README.md Outdated Show resolved Hide resolved
benchmark/connections.json Outdated Show resolved Hide resolved
benchmark/main.go Outdated Show resolved Hide resolved
benchmark/main.go Outdated Show resolved Hide resolved
fmt.Println(string(out.Bytes()))
default:
for _, res := range results {
fmt.Printf("======= CLIENT %s =======\n", res.ID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use Aurora package to add some colors in the CLI and make is sexier ;).

benchmark/onechannel.json Outdated Show resolved Hide resolved
Gopkg.toml Outdated Show resolved Hide resolved
Copy link
Collaborator

@dborovcanin dborovcanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need client binary in /benchmark?

benchmark/main.go Outdated Show resolved Hide resolved
benchmark/client.go Outdated Show resolved Hide resolved
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
tools/provision/main.go Outdated Show resolved Hide resolved
tools/provision/main.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/client.go Outdated Show resolved Hide resolved
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Gopkg.toml Outdated Show resolved Hide resolved
tools/mqtt-bench/mqtt/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/mqtt/client.go Outdated Show resolved Hide resolved
tools/mqtt-bench/mqtt/client.go Outdated Show resolved Hide resolved
tools/provision/main.go Outdated Show resolved Hide resolved
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
dborovcanin
dborovcanin previously approved these changes Aug 12, 2019
Gopkg.toml Outdated Show resolved Hide resolved
tools/mqtt-bench/cmd/bench.go Outdated Show resolved Hide resolved
tools/mqtt-bench/cmd/bench.go Outdated Show resolved Hide resolved
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just handle these errors and it will be approved. Sorry for not specifying this earlier, I missed it somehow.

tools/mqtt-bench/cmd/bench.go Outdated Show resolved Hide resolved
tools/provision/main.go Show resolved Hide resolved
tools/mqtt-bench/cmd/bench.go Outdated Show resolved Hide resolved
tools/mqtt-bench/mqtt/client.go Outdated Show resolved Hide resolved
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Copy link
Contributor

@anovakovic01 anovakovic01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Contributor

@drasko drasko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drasko drasko merged commit 19834df into absmach:master Aug 13, 2019
@nmarcetic nmarcetic mentioned this pull request Oct 9, 2019
@mteodor mteodor deleted the MF-295 branch September 22, 2020 10:38
manuio pushed a commit that referenced this pull request Oct 12, 2020
* adding mqtt benchmark tool

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* adding mqtt benchmark tool - vendoring

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* add mtls support

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* update readme

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* tool for channel provision, reorganize code

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* adding config toml

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* tool for channel provision, adding ssl cert gen

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* add config toml

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* add readme for provision

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* update readme

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* remove some printing

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* add test configs

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* remove some dead code, and sort comments

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* replace statistics lib

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* replace statistics lib

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* add cobra and viper

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* styling changes

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* styling changes

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* styling changes

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* remove statistic lib

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* change type visibility

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* remove empty line

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* update vendor

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* update deps

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* rename variable

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* small changes, adding comments

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>

* error handling

Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants