Skip to content

chalk-ai/ghz

Repository files navigation

Fork of the excellent ghz package with some small modifications. This version improves the histogram in the report and fixes some small bugs.

ghz


Logo

Release Build Status Go Report Card License Donate Buy me a coffee

gRPC benchmarking and load testing tool.

Documentation

All documentation for the library fork on pkg.go.dev.

Go Package

report, err := runner.Run(
    "helloworld.Greeter.SayHello",
    "localhost:50051",
    runner.WithProtoFile("greeter.proto", []string{}),
    runner.WithDataFromFile("data.json"),
    runner.WithInsecure(true),
)

if err != nil {
    fmt.Println(err.Error())
    os.Exit(1)
}

printer := printer.ReportPrinter{
    Out:    os.Stdout,
    Report: report,
}

printer.Print("pretty")

Credit

Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

License

Apache-2.0