GithubHelp home page GithubHelp logo

abarre / blitz-ruby Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kowsik/blitz-ruby

0.0 2.0 0.0 267 KB

Ruby API client and CLI for Blitz

Home Page: http://www.blitz.io

License: MIT License

blitz-ruby's Introduction

blitz.io

Make load and performance a fun sport.

  • Run a sprint from around the world
  • Rush your API and website to scale it out
  • Condition your site around the clock

Getting started

Login to blitz.io and in the blitz bar type: --api-key

Now gem install blitz

and run a sprint like this: blitz curl --region california http://blitz.io

and you can rush like this: blitz curl --region california --pattern 1-100:60 http://blitz.io

Using the couch:fuzz command

Simply point this blitz gem to your CouchDB URL and we'll auto generate full parameterized tests that you can use to measure view performance.

blitz http://localhost:5984 my_database

will generate tests like this:

-v:l number[1,10] -v:gl number[1,5] http://dell-5:5984/my_database/_design/pcaps/_view/by_service?group=true&limit=#{l}&group_level=#{gl}
-v:sk alpha[4,12] -v:ek alpha[4,12] -v:l number[1,10] -v:id [true,false] http://dell-5:5984/my_database/_design/pcaps/_view/indexed?startkey=%22am#{sk}%22&endkey=%22ykz#{ek}%22&include_docs=#{id}&limit=#{l}

which you can simply copy/paste to the blitz.io. Your CouchDB must be on the public cloud though.

Using blitz gem on your application

You can integrate blitz gem to your application and run tests whenever you want.

Sprint

require 'blitz'

...

result = Blitz::Curl.parse('-r california www.example.com').execute

Rush

require 'blitz'

...

result = Blitz::Curl.parse('-r california -p 10-50:30 www.example.com').execute do |partial|
    pp [ partial.region, partial.timeline.last.hits ]
end

Copyright (c) 2011 Mu Dynamics. See LICENSE.txt for further details.

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.