Giter Club home page Giter Club logo

sofaload's Introduction

sofaload

sofaload is benchmarking tool for SOFARPC. It is extended from h2load.

Features

  • P50, P75, P90, P99 latency
  • Support SOFARPC streaming protocol
  • Support HTTP/1.1 and HTTP2

Build

autoreconf -i
automake
autoconf
./configure --enable-app
make // your g++ should support -std=c++14
sudo make install

Usage

  • basic mode.

    perform sofarpc benchmark using total 1000 requests, 4 concurrent clients, 2 max concurrent streams and 4 threads:

      sofaload -n 1000 -c 4 -m 2 -t 4 -p sofarpc sofarpc://[ip]:[port]
    
  • timing-based mode

    perform sofarpc benchmark for 10 seconds after 5 seconds warming up period:

      sofaload -D 10 --warm-up-time=5 -c 4 -t 4 -p sofarpc sofarpc://[ip]:[port]
    
  • qps mode

    perform sofarpc benchmark for 10 seconds with a fixed 2000 qps:

      sofaload -D 10 --qps=2000 -t 4 -p sofarpc sofarpc://[ip]:[port]
    

Command Line Options

-n, --requests=<N>  Number of requests across all clients.

-c, --clients=<N>   Number of concurrent clients.
                    Default: 1

-m, --max-concurrent-streams=<N>
                    Max concurrent streams to issue per session.
                    Default: 1

-t, --threads=<N>   Number of native threads.
                    Default: 1

-p, --no-tls-proto=<PROTOID>
                    Specify the protocol to be used.
                    Available protocols: h2c and http/1.1 and sofarpc

-D, --duration=<N>  Specifies the main duration for the measurements
                    in case of timing-based and qps mode.

--warm-up-time=<DURATION>
                    Specifies the time period before starting the actual
                    measurements, in case of timing-based and qps benchmarking.

--qps=<N>           Specifies the qps for benchmarking.

sofaload's People

Contributors

antjack avatar

Stargazers

 avatar  avatar

Forkers

alpha-baby

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.