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

Not working for Visualize Go app benchmarking #7

Open
AntonioSun opened this issue Dec 7, 2019 · 3 comments
Open

Not working for Visualize Go app benchmarking #7

AntonioSun opened this issue Dec 7, 2019 · 3 comments

Comments

@AntonioSun
Copy link

Coming here from

Visualize Go app benchmarking
https://jtway.co/visualize-go-app-benchmarking-2a3be0169e26

but found even its own sample data is not working.

What I'm missing?

@miry
Copy link

miry commented Dec 7, 2019

Hi @AntonioSun
Author of the article https://jtway.co/visualize-go-app-benchmarking-2a3be0169e26 here.

It is a pity, but the tool is not maintained anymore.
My experiments was tested against my fork: https://github.com/miry/benchgraph.
It has chages from #4 and #5.

Here is commands to install:

$ git clone [email protected]:miry/benchgraph.git
$ cd benchgraph
$ go install

After those commands you should have $GOPATH/bin/benchgraph , in my case it is located in ~/go/bin/benchgraph.

UPDATE: You can also install tool via go get -u github.com/miry/benchgraph

Than you can checkout my benchmark tests from https://github.com/miry/samples/tree/master/benchmarks

change your current directory to this folder and run next:

$ go test -bench=. ./... | ~/go/bin/benchgraph 
? goos: linux
? goarch: amd64
? pkg: github.com/miry/samples/benchmarks
√ BenchmarkAccessStructure/Array_1-8          44241926         25.8 ns/op
√ BenchmarkAccessStructure/Hash_1-8           37103576         33.7 ns/op
√ BenchmarkAccessStructure/Array_10-8         45894141         27.1 ns/op
√ BenchmarkAccessStructure/Hash_10-8          27202474         41.5 ns/op
...

√ BenchmarkPrintString/Fprintf_1000000-8             6  187600868 ns/op
? ok   github.com/miry/samples/benchmarks 41.015sWaiting for server response ...
=========================================http://benchgraph.codingberg.com/ig=========================================

You should take attention that only tests marked with green check would be send to the server.

In the end you see the link to the results.

@AntonioSun
Copy link
Author

AntonioSun commented Dec 9, 2019

Thanks @miry,

I took the liberty to gather PRs from all different forks and consolidate them into a central location/tool --
https://github.com/AntonioSun/benchgraph#prefix---whats-special-about-this-fork
and provide binary releases to all platforms as well.

@miry
Copy link

miry commented Dec 9, 2019

@AntonioSun Nice job 👍

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

No branches or pull requests

2 participants