GithubHelp home page GithubHelp logo

jmeter_hello_world's Introduction

jmeter_hello_world

Hello world for jmeter

A very basic example of Jmeter test plan based on (http://jmeter.apache.org/usermanual/build-web-test-plan.html)

Installation

Jmeter

sudo apt-get install jmeter jmeter-http

Ruby API requirements

sudo apt-get install ruby
sudo gem install sinatra

Go API requirements

sudo apt-get install golang
cd jmeter_hello_world
gobuild api

Based on (http://soryy.com/blog/2014/not-another-go-net-http-tutorial/)

Running JMeter tests

Fire up an API. Both examples run on port 8080 so you can only run one at a time. Both API implementations are equivalent providing a \random endpoint which takes an optional size parameter. If the size parameter is missing a random number of elements will be returned 0 < x < 200

  1. Ruby api

    ruby api.rb

  2. Go

    ./api

To test your api is running, in another shell run

curl localhost:8080/random?size=2

Jmeter

Start JMeter

jmeter

Once Jmeter has fired up, load up the test plan (File -> Open) and select 'SimpleTestPlan.jmx' To run the test do 'Run -> Start' and navigate to the 'Graph Results' in the tree on the left to observe the test performance.

Credits

Inspired by (https://github.com/mjgpy3/jmeter_toy)

jmeter_hello_world's People

Contributors

singram 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.