Skip to content

Releases: bojand/ghz

v0.33.0

06 Apr 00:20
5128c04
Compare
Choose a tag to compare

Changelog

5128c04 Improve CLI flags (#80)

Addresses #75

usage: ghz [<flags>] [<host>]

Flags:
  -h, --help                Show context-sensitive help (also try --help-long and --help-man).
      --config=             Path to the JSON or TOML config file that specifies all the test run settings.
      --proto=              The Protocol Buffer .proto file.
      --protoset=           The compiled protoset file. Alternative to proto. -proto takes precedence.
      --call=               A fully-qualified method name in 'package.Service/method' or 'package.Service.Method' format.
  -i, --import-paths=       Comma separated list of proto import paths. The current working directory and the directory of the protocol buffer file are automatically added to the import list.
      --cacert=             File containing trusted root certificates for verifying the server.
      --cert=               File containing client certificate (public key), to present to the server. Must also provide -key option.
      --key=                File containing client private key, to present to the server. Must also provide -cert option.
      --cname=              Server name override when validating TLS certificate - useful for self signed certs.
      --skipTLS             Skip TLS client verification of the server's certificate chain and host name.
      --insecure            Use plaintext and insecure connection.
      --authority=          Value to be used as the :authority pseudo-header. Only works if -insecure is used.
  -c, --concurrency=50      Number of requests to run concurrently. Total number of requests cannot be smaller than the concurrency level. Default is 50.
  -n, --total=200           Number of requests to run. Default is 200.
  -q, --qps=0               Rate limit, in queries per second (QPS). Default is no rate limit.
  -t, --timeout=20          Timeout for each request in seconds. Default is 20, use 0 for infinite.
  -z, --duration=0          Duration of application to send requests. When duration is reached, application stops and exits. If duration is specified, n is ignored. Examples: -z 10s -z 3m.
  -x, --max-duration=0      Maximum duration of application to send requests with n setting respected. If duration is reached before n requests are completed, application stops and exits.
                            Examples: -x 10s -x 3m.
  -d, --data=               The call data as stringified JSON. If the value is '@' then the request contents are read from stdin.
  -D, --data-file=          File path for call data JSON file. Examples: /home/user/file.json or ./file.json.
  -b, --binary              The call data comes as serialized binary message read from stdin.
  -B, --binary-file=        File path for the call data as serialized binary message.
  -m, --metadata=           Request metadata as stringified JSON.
  -M, --metadata-file=      File path for call metadata JSON file. Examples: /home/user/metadata.json or ./metadata.json.
      --stream-interval=0   Interval for stream requests between message sends.
      --reflect-metadata=   Reflect metadata as stringified JSON used only for reflection request.
  -o, --output=             Output path. If none provided stdout is used.
  -O, --format=             Output format. If none provided, a summary is printed.
      --connect-timeout=10  Connection timeout in seconds for the initial connection dial. Default is 10.
      --keepalive=0         Keepalive time in seconds. Only used if present and above 0.
      --name=               User specified name for the test.
      --tags=               JSON representation of user-defined string tags.
      --cpus=8              Number of cpu cores to use.
  -v, --version             Show application version.

Args:
  [<host>]  Host and port to test.

Breaking Change

  • Config file now matches the long flags above.

v0.32.0

23 Mar 20:53
Compare
Choose a tag to compare

Changelog

9ee88b1 Make receiving from bidirectional streams asynchronous to keep requests flowing
df55786 Merge pull request #77 from chemicL/bidistreams
6ebeeed remove Prints and minor cleanup from PR and update certs

v0.31.0

24 Feb 01:41
Compare
Choose a tag to compare

Changelog

9005ad2 Get ghz compliant with errcheck
645ad20 Merge pull request #71 from peter-edge/linting
7cd212e Swallow RPC errors as they are handled by stats handler and reported in reports

v0.30.0

05 Feb 01:42
063c563
Compare
Choose a tag to compare

Changelog

063c563 Add reflection support (#68)

Now if -proto or -protoset are not specified, we default to server reflection and try to get the method details from server using a reflection request. Optionally -rmd can be used to specify metadata as stringified JSON used only for reflection request.

Example:

ghz -insecure \
    -rmd '{"token": "foobar"}' \
    -call "helloworld.Greeter.SayHello" \
    -d '{"name": "Bob Smith"}' \
    0.0.0.0:50051

v0.29.0

01 Feb 16:27
Compare
Choose a tag to compare

Changelog

0215b2c Add Makefile for development (#67)
320fbde Fix documentation on method name and add additional parsing safety checks
ef3c7c0 Merge pull request #66 from peter-edge/parse-service-method

v0.28.0

27 Jan 02:25
2320a4c
Compare
Choose a tag to compare

Changelog

2320a4c Add stream interval (#58)

v0.27.0

24 Jan 00:11
Compare
Choose a tag to compare

Changelog

46ce0a5 Improve duration formatting in summary and html outputs
26d8205 Fix ingest status. Fix compile CGO compile issue. Improve HTML output

v0.26.0

23 Jan 14:28
Compare
Choose a tag to compare

Changelog

4035d19 TLS fix: actually pass all the security settings into config from CLI arguments

v0.25.0

23 Jan 13:01
Compare
Choose a tag to compare

Changelog

3f7e9ee Fix TLS credential options (#56)
aa81533 Merge branch 'master' of https://github.com/bojand/ghz

v0.24.0

22 Jan 01:22
Compare
Choose a tag to compare

Changelog

Improve Influx data output. Fixes #54.