kingkai

command module
v0.0.0-...-54030cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2019 License: BSD-3-Clause Imports: 14 Imported by: 0

README

King Kai: HTTP benchmark reports using Vegeta

kingkai generates HTTP benchmark reports by comparing past and future attacks made by vegeta.

King Kai thinking

He possesses great intelligence and knowledge about the universe, and specializes in universal telepathic links. Even though he was already weaker than Vegeta before he taught Goku, King Kai is still a veritable library of skills, techniques and literally centuries of wisdom. (source)

Installation

Install Go, then run:

go get -u github.com/slimsag/kingkai

Running

First use vegeta attack to produce some before and after gob files:

$ mkdir before
$ echo "GET https://google.com" | vegeta attack -duration=5s -name 'Google.com @ 50 QPS / 5s' > before/query1.bin

$ mkdir after
$ echo "GET https://google.com" | vegeta attack -duration=5s -name 'Google.com @ 50 QPS / 5s' > after/query1.bin

$ tree before/ after/
before/
└── query1.bin
after/
└── query1.bin

0 directories, 2 files

Then make use of kingkai:

$ kingkai before/ after/

Which outputs the following Markdown result:

Google.com @ 2 QPS / 30s
Mean P50 P95 P99 Max Success Ratio
178ms → 142ms (-20.22%) 131ms → 130ms (-0.76%) 436ms → 167ms (-61.70%) 517ms → 613ms (18.57%) 523ms → 655ms (25.24%) 1% → 1%

Thanks

@Andoryuuta for helping to write this all while 🛶 Canoeing across the atlantic.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL