benchmarks/

directory
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT

README

Benchmarks

To run the benchmarks, compile & run the runner

make bins
./benchmarks/runner/runner

This will run the benchmark runner..

Next you can use wrk to generate load, There are multiple lua scripts in ./benchmarks/*.lua each with their own instructions.

For example:

wrk -t12 -c400 -d30s -s ./benchmarks/contacts_1KB.lua http://localhost:8093/contacts/foo/contacts

This will generate load against the gateway.

To generate a flame graph for profiling, install go-torch

go get github.com/uber/go-torch

In one tab run a loadtest

./benchmarks/runner/runner -loadtest

while it is running, run go-torch

go-torch -u http://localhost:8093/ -t5

Open torch.svg with chrome

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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