Technical Documentation: padrino/padrino-framework
โน๏ธ Provenance: Multi-Tier Ingestion ยท CodeWiki Reference
Overview (`padrino-performance/README.md`)
Padrino Performance
Performance tools for Padrino.
Installation
Add padrino-performance to your Gemfile of your Padrino application.
Install the gem with
text
$ bundle installAvailable 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.- Use it by passing the
-jor--jsonoption.
- Use it by passing the
- Memory: Print the memory usage of your application when it is started.
- Use it by passing the
-mor--memoption.
- Use it by passing the
Usage
bundle exec padrino-performance SUITE -- bundle exec padrino COMMAND
Examples:
Check for conflicting json libraries on a console:
text$ 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 sameMeasure memory on a running app:
text$ bundle exec padrino-performance -m -- bundle exec padrino start 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
--- METRICS ---
- Files Extracted: 1
- Estimated Token Budget: ~354 tokens
- Canonical Reference: https://codewiki.google/github.com/padrino/padrino-framework