Skip to content

Commit

Permalink
[padrino-performance] README.md: Fix typos, options, repair markup (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle authored Jun 28, 2024
1 parent e65e4f2 commit b1bd293
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions padrino-performance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,33 @@ Install the gem with
## 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.
- Use 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.
- Use it by passing the `-m` or `--mem` option.


## Usage

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

E.g.:
Examples:

- Measure json on a console:

bundle exec padrino-performance -j -- bundle exec padrino console
- Check for conflicting json libraries 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

```
$ 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
```

0 comments on commit b1bd293

Please sign in to comment.