Skip to content

Latest commit

 

History

History
executable file
·
75 lines (51 loc) · 1.52 KB

README.md

File metadata and controls

executable file
·
75 lines (51 loc) · 1.52 KB

Webbench

windows lines

This is a Rust refactored version of Radim Kolar - Web Bench, which uses tokio runtime to handle concurrent I/O tasks.

Features

  • HTTP
    • HTTP 0.9/1.0/1.1
    • HTTP 2
  • Keep alive.
  • Customizable header.
  • Use proxy server for request.
  • TLS connections support.

Usage

  • Build

    cargo build --release
  • Command line usage

    Usage: webbench [OPTIONS] <URL>
    
    Arguments:
      <URL>
    
    Options:
      -t, --time \<TIME>
              Run benchmark for \<TIME> seconds
    
              [default: 30]
    
      -c, --client <CLIENT>
              Run <CLIENT> HTTP clients at once
    
              [default: 1]
    
      -p, --proxy <PROXY>
              Use proxy server for request
    
      -k, --keep
              Keep-Alive
    
      -m, --method <METHOD>
              Use <METHOD> request method
    
              [default: get]
              [possible values: options, get, head, trace]
    
          --http <HTTP>
              Use <HTTP> version for request
            
              [default: h11]
    
              Possible values:
              - h09: HTTP 0.9
              - h10: HTTP 1.0
              - h11: HTTP 1.1
    
          --header <HEADER>
              Send requests using customized header
    
      -h, --help
              Print help information (use `-h` for a summary)
    
      -V, --version
              Print version information