GithubHelp home page GithubHelp logo

http_blaster's Introduction

http_blaster - go http load tool

Getting started

Get the code into your workspace

cd $GOPATH/src
git clone https://github.com/v3io/http_blaster.git

Build

cd $GOPATH/src/http_blaster
go get
go build

Generate workload file

title = "Workload example" - name for the test workload 
[global]
	Duration        "120s" - test total timeout
	Block_size      100 - payload of 100 bytes if no payload file given
    Server        127.0.0.1 - server address
    Port          8080 - server port
    TLSMode       false - use secure connection
    [global.StatusCodesAcceptance]
    	200 = 100   -accept upto 100% from total responses to be with status code 200
    	500 = 0.1   -accept upto 0.1% from total responses to be with status code 500

[workloads]
[workload.1]
  	Name      "test" - name for the workload (will be written in the log)
    Bucket    "1" - bucket will be used to build the access url
    File_path "test.html" - file to access
    Type      "PUT" - can be PUT or GET
    Duration  "30s" - time to send requests
    Count     0 - number of requests to send, if 0 is given then time is ending condition.
    Workers   1 - number of workers to send the request in parallel
  	Payload   "payloadfile.dat" - file path that contains the payload of the request
    [workload.1.Header]
      	range = "-1" - header key value for the request
 [workload.2]
 ...

Run the tool

./http_blaster -c [your workload file] -o [result file name]

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.