Sha256: cb4ece8c42e91cb0f465d27c5d8ce887c3689f1eef8782cda69fee50b1ef7213

Contents?: true

Size: 1.33 KB

Versions: 23

Compression:

Stored size: 1.33 KB

Contents

# Padrino Performance

Performance tools for Padrino.


## Installation

Add `padrino-performance` to your `Gemfile` of your Padrino application.

Install the gem with

    $ bundle install


## Available suites

- JSON: Tell you if you have conflicting libraries being declared in your `Gemfile`. Why? Because they would nearly do the same job and this will help you to detect it.
    - You can it by passing the `-j` or `--json` option.
- Memory: Print the memory usage of your application when it is started.
    - You can it by passing the `-j` or `--json` option.


## Usage

`bundle exec padrino-performance SUITE -- bundle exec padrino COMMAND`

E.g.:

- Measure json on a console:

    bundle exec padrino-performance -j -- bundle exec padrino console
    >> require 'json'
    >> require 'json_pure'

    Then you will get some error reports in the terminal, which indicates that you have
    conflicting json libraries that do the same


- Measure memory on a running app:

    bundle exec padrino-performance -m -- bundle exec padrino start
    # The output will be the following

     total    44056K
     total    44980K
    => Padrino/0.11.2 has taken the stage development at http://127.0.0.1:3000
    >> Thin web server (v1.5.1 codename Straight Razor)
    >> Maximum connections set to 1024
    >> Listening on 127.0.0.1:3000, CTRL+C to stop

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
padrino-performance-0.15.3 README.md
padrino-performance-0.15.2 README.md
padrino-performance-0.15.1 README.md
padrino-performance-0.15.0 README.md
padrino-performance-0.14.4 README.md
padrino-performance-0.12.6 README.md
padrino-performance-0.13.2 README.md
padrino-performance-0.13.1 README.md
padrino-performance-0.13.1.beta1 README.md
padrino-performance-0.13.0 README.md
padrino-performance-0.13.0.beta3 README.md
padrino-performance-0.13.0.beta2 README.md
padrino-performance-0.12.5 README.md
padrino-performance-0.13.0.beta1 README.md
padrino-performance-0.12.4 README.md
padrino-performance-0.12.3 README.md
padrino-performance-0.12.2 README.md
padrino-performance-0.12.1 README.md
padrino-performance-0.12.0 README.md
padrino-performance-0.12.0.rc3 README.md