h2load.1.rst 4.01 KB
Newer Older
1

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
2 3
.. program:: h2load

4 5 6 7 8
h2load(1)
=========

SYNOPSIS
--------
9

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
10
**h2load** [OPTIONS]... [URI]...
11 12 13

DESCRIPTION
-----------
14

15 16
benchmarking tool for HTTP/2 and SPDY server

17
.. describe:: <URI>
18

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
19 20 21 22 23 24
    Specify URI to access.   Multiple URIs can be specified.
    URIs are used  in this order for each  client.  All URIs
    are used, then  first URI is used and then  2nd URI, and
    so  on.  The  scheme, host  and port  in the  subsequent
    URIs, if present,  are ignored.  Those in  the first URI
    are used solely.
25

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
26 27
OPTIONS
-------
28 29 30

.. option:: -n, --requests=<N>

31 32 33
    Number of requests.

    Default: ``1``
34 35 36

.. option:: -c, --clients=<N>

37 38 39
    Number of concurrent clients.

    Default: ``1``
40 41 42

.. option:: -t, --threads=<N>

43 44 45
    Number of native threads.

    Default: ``1``
46

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
47 48
.. option:: -i, --input-file=<FILE>

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
49 50 51 52 53 54 55 56
    Path of a file with multiple URIs are seperated by EOLs.
    This option will disable URIs getting from command-line.
    If '-' is given as <FILE>, URIs will be read from stdin.
    URIs are used  in this order for each  client.  All URIs
    are used, then  first URI is used and then  2nd URI, and
    so  on.  The  scheme, host  and port  in the  subsequent
    URIs, if present,  are ignored.  Those in  the first URI
    are used solely.
Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
57

58 59
.. option:: -m, --max-concurrent-streams=(auto|<N>)

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
60 61
    Max concurrent streams to  issue per session.  If "auto"
    is given, the number of given URIs is used.
62 63

    Default: ``auto``
64 65 66

.. option:: -w, --window-bits=<N>

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
67 68
    Sets the stream level initial window size to (2\*\*<N>)-1.
    For SPDY, 2**<N> is used instead.
69 70 71

.. option:: -W, --connection-window-bits=<N>

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
72 73 74 75
    Sets  the  connection  level   initial  window  size  to
    (2**<N>)-1.  For SPDY, if <N>  is strictly less than 16,
    this option  is ignored.   Otherwise 2\*\*<N> is  used for
    SPDY.
76

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
77 78 79 80
.. option:: -H, --header=<HEADER>

    Add/Override a header to the requests.

81 82
.. option:: -p, --no-tls-proto=<PROTOID>

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
83 84 85
    Specify ALPN identifier of the  protocol to be used when
    accessing http URI without SSL/TLS.
    Available protocols: spdy/2, spdy/3, spdy/3.1 and h2c-14
86 87

    Default: ``h2c-14``
88

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
89 90 91 92 93
.. option:: -d, --data=<FILE>

    Post FILE to  server.  The request method  is changed to
    POST.

94 95 96 97 98 99 100 101 102 103 104 105
.. option:: -v, --verbose

    Output debug information.

.. option:: --version

    Display version information and exit.

.. option:: -h, --help

    Display this help and exit.

Tatsuhiro Tsujikawa's avatar
Tatsuhiro Tsujikawa committed
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156
OUTPUT
------

requests
  total
    The number of requests h2load was instructed to make.
  started
    The number of requests h2load has started.
  done
    The number of requests completed.
  succeeded
    The number of requests completed successfully.  Only HTTP status
    code 2xx or3xx are considered as success.
  failed
    The number of requests failed, including HTTP level failures
    (non-successful HTTP status code).
  errored
    The number of requests failed, except for HTTP level failures.
    status code.  This is the subset of the number reported in
    ``failed`` and most likely the network level failures or stream
    was reset by RST_STREAM.

status codes
  The number of status code h2load received.

traffic
  total
    The number of bytes received from the server "on the wire".  If
    requests were made via TLS, this value is the number of decrpyted
    bytes.
  headers
    The number of response header bytes from the server without
    decompression.  For HTTP/2, this is the sum of the payload of
    HEADERS frame.  For SPDY, this is the sum of the payload of
    SYN_REPLY frame.
  data
    The number of response body bytes received from the server.

time for request
  min
    The minimum time taken for request and response.
  max
    The maximum time taken for request and response.
  mean
    The mean time taken for request and response.
  sd
    The standard deviation of the time for request and response.
  +/- sd
    The fraction of the number of requests within standard deviation
    range (mean +/- sd) against total number of successful requests.

157 158 159
SEE ALSO
--------

160
:manpage:`nghttp(1)`, :manpage:`nghttpd(1)`, :manpage:`nghttpx(1)`