Giter Club home page Giter Club logo

tenchmark's Introduction

Tenchmark

Thrift benchmark command line tool.

Contributions are welcomed

Quickview

This is Tenchmark, Version 0.1
Copyright 2017 Terence Fan, Baixing, https://github.com/baixing
Licensed under the MIT

Benchmarking :6000 (be patient)......
Completed 1000 requests
Finished 1000 requests

Server Address:         :6000

Concurrency level:      10
Time taken for tests:   0.026 seconds
Complete requests:      1000
Failed requests:        0
Request per second:     37887.40 [#/sec] (mean)

Percentage of the requests served within a certain time (ms)
  50%     0.12
  66%     0.14
  75%     0.15
  80%     0.16
  90%     0.19
  95%     0.22
  98%     0.25
  99%     0.36
 100%    13.27 (longest request)

We support following protocols and transports currently:

  • protocol
    • binary
  • transport
    • tcp socket
    • unix domain
    • http
  • transport wrapper
    • framed
    • buffered

Installation

git clone [email protected]:stdrickforce/tenchmark.git
go get -u
go install

or you can use our docker image (base on alpine linux)

docker run --rm -ti stdrickforce/tenchmark sh

Usage

  • send ping request to :10010
$ tenchmark run :10010
  • send ping request with multiplexed protocol
$ tenchmark run :10010 --service=<service_name>
  • send ping request to :10010 via framed transport
$ tenchmark run :10010 --wrapper=framed
  • send ping request via unix domain socket
$ tenchmark run /var/run/x.sock --transport=unix
  • send ping request via http
$ tenchmark run http://<host>:<port>/<path> --transport=http

Advanced Usage

You can build your own cases through tenchmark build command.

$ tenchmark build example/ping.thrift --json=example/api.json
cases/case1.in sucessfully generated.

And you can specify the case you've built through following command.

$ tenchmark run --case=cases/case1.in

For further informations, see examples (work in progress)

tenchmark's People

Contributors

jixunzhen avatar terencefan avatar

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.