forked from bobheadxi/gobenchdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.go
33 lines (20 loc) · 874 Bytes
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
Gobenchdata is a tool for inspecting golang benchmark outputs. To install it,
you must have Go installed:
go get -u go.bobheadxi.dev/gobenchdata
gobenchdata help
Then pipe your benchmark into the tool:
go test -bench . -benchmem ./... | gobenchdata --json bench.json
You can create a sort of database of benchmarks by appending new benchmarks to
an existing file:
go test -benchtime 10000x -bench . -benchmem ./... | gobenchdata --json benchmarks.json --append
You can also merge results:
gobenchdata merge file1.json file2.json file3.json
Visualize the results:
gobenchdata web serve
Compare results:
gobenchdata checks generate # generates config file to define checks
gobenchdata checks eval base-benchmarks.json current-benchmarks.json --checks.pretty
Learn more in the repository README: https://github.com/bobheadxi/gobenchdata
*/
package main