bench

command
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 13 Imported by: 0

README

HTTP benchmark test

This tool runs variable evaluations in a local HTTP server, for measuring the latency via any load testing client.

$ ./bench --help
Usage of bench:
  -config-interval duration
        interval between checks for config updates (default 1m0s)
  -enable-events
        enable event logging
  -event-interval duration
        interval between flushing events (default 1m0s)
  -listen string
        [host]:port to listen on (default ":8080")
  -max-memory-buckets int
        set max memory allocation buckets
  -max-wasm-workers int
        set number of WASM workers (zero defaults to GOMAXPROCS)

Running the server

go run ./bench

Generating requests

brew install hey

# Get results for /variable call
hey -n 5000 -c 100 http://127.0.0.1:8080/variable

# Get baseline results for the HTTP server overhead
hey -n 5000 -c 100 http://127.0.0.1:8080/empty

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