Skip to content

Commit

Permalink
plot: Rename BenchmarkHTMLPlot
Browse files Browse the repository at this point in the history
  • Loading branch information
tsenart committed Aug 12, 2018
1 parent c9b9ae4 commit 48ba0db
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/plot/plot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
vegeta "github.com/tsenart/vegeta/lib"
)

func BenchmarkHTMLPlot(b *testing.B) {
func BenchmarkPlot(b *testing.B) {
b.StopTimer()
// Build result set
rs := make(vegeta.Results, 50000000)
Expand All @@ -27,12 +27,7 @@ func BenchmarkHTMLPlot(b *testing.B) {
plot := New(
Title("Vegeta Plot"),
Downsample(5000),
Label(func(r *vegeta.Result) string {
if r.Code >= 200 && r.Code < 300 {
return "OK"
}
return "Error"
}),
Label(ErrorLabeler),
)

b.Run("Add", func(b *testing.B) {
Expand Down

0 comments on commit 48ba0db

Please sign in to comment.