Giter Site home page Giter Site logo

vex's Introduction

vex is a small PHP app that sends some load to a web application

vex - PHP based HTTP load generator

Installation

Download the latest release from GitHub Releases.

Or require globally using Composer with composer global require vamsiikrishna/vex. This will automatically add the vex binary to your path.

Usage

Usage:
vex [options] [--] <url> [<n>] [<c>]

Arguments:

  url                      The URL to which the requests should be sent
  n                        Number of requests to be made [default: 1]
  c                        Concurrency [default: 1]

Options:

  -m, --method[=METHOD]    HTTP Method [default: "GET"]
  -H, --headers[=HEADERS]  Headers (multiple values allowed)
  -d, --body[=BODY]        Request body

Example:

  • 1000 Get requests with 10 concurrency to http://127.0.0.1:8000

./vex.phar vex http://127.0.0.1:8000 1000 10

  • 1000 POST requests with 10 concurrency to http://127.0.0.1:8000 with custom headers and body
./vex.phar vex http://127.0.0.1:8000 1000 10 \
-m "POST" \
-H "accept:application/json, text/plain, */*" \
-H "accept-language:en-IN,en-GB;q=0.8,en-US;q=0.6,en;q=0.4" \
-d "{\"message\": \"Hello world! Your JustAPIs instance is running correctly.\"}"

vex's People

Contributors

owenvoke avatar vamsiikrishna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vex's Issues

POST not working

Hi,

I downloaded the version 0.2-dev of vex.phar and tryed your example

./vex.phar vex http://127.0.0.1:8000 1000 10 \
-m "POST" \
-H "accept:application/json, text/plain, */*" \
-H "accept-language:en-IN,en-GB;q=0.8,en-US;q=0.6,en;q=0.4" \
-d "{\"message\": \"Hello world! Your JustAPIs instance is running correctly.\"}"

and I get the following error:

Error

Any help?

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.