cep21 / benchdraw Goto Github PK
View Code? Open in Web Editor NEWA CLI to turn Go's benchmark output into pictures
License: Apache License 2.0
A CLI to turn Go's benchmark output into pictures
License: Apache License 2.0
I get a panic when running with the following benchmark.
corylanou@Corys-MBP-2:~/go/src/github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new (master % u= origin/master)
$ cat benchmark.txt
goos: darwin
goarch: amd64
pkg: github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new
BenchmarkFib-8 92689851 12.8 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new 1.211s
corylanou@Corys-MBP-2:~/go/src/github.com/gopherguides/learn/_training/advanced/benchmarking/src/fib_new (master % u= origin/master)
$ benchdraw --x=source -filter=BencharkFib < ./benchmark.txt > ./out0.svg
panic: runtime error: index out of range [0] with length 0
goroutine 1 [running]:
gonum.org/v1/plot.(*Plot).NominalX(0xc00004b000, 0x0, 0x0, 0x0)
/Users/corylanou/go/src/gonum.org/v1/plot/plot.go:393 +0x206
github.com/cep21/benchdraw/internal.(*Plotter).createPlot(0x18269c0, 0x0, 0xc0000a60a0, 0x1, 0x7ffeefbff555, 0xb, 0x7ffeefbff546, 0x6, 0x137abb9, 0x5, ...)
/Users/corylanou/go/src/github.com/cep21/benchdraw/internal/plotter.go:78 +0x169
github.com/cep21/benchdraw/internal.(*Plotter).Plot(0x18269c0, 0x0, 0xc0000a60a0, 0x13eda80, 0xc00000e010, 0x137a3d7, 0x3, 0x1, 0x7ffeefbff555, 0xb, ...)
/Users/corylanou/go/src/github.com/cep21/benchdraw/internal/plotter.go:40 +0x103
main.(*Application).run(0x18269c0, 0x0, 0x0)
/Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:196 +0xdc7
main.(*Application).main(0x18269c0)
/Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:131 +0x2f
main.main()
/Users/corylanou/go/src/github.com/cep21/benchdraw/main.go:217 +0x2d
go get github.com/cep21/benchdraw
go get: github.com/cep21/benchdraw@none updating to
github.com/cep21/[email protected] requires
github.com/golangci/[email protected] requires
github.com/go-critic/[email protected]: invalid pseudo-version: does not match version-control timestamp (expected 20190526074819)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.