Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Commit

Permalink
Update without the 25 lines logged
Browse files Browse the repository at this point in the history
  • Loading branch information
binarylogic committed Aug 21, 2016
1 parent 5b3dcd4 commit ed340f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ The following results were run on a bare metal server in order to achieve consis
+---------------------------+------------+-----------------+------------------+
| | Total | Per request avg | Per request diff |
+---------------------------+------------+-----------------+------------------+
| Control | 0.00717974 | 0.00071797 | |
| Timber probes only | 0.00859213 | 0.00085921 | 0.00014124 |
| Timber probes and logging | 0.0439229 | 0.00439229 | 0.00353308 |
| Control | 0.00568414 | 0.00056841 | |
| Timber probes only | 0.00673819 | 0.00067382 | 0.0001054 |
| Timber probes and logging | 0.00912786 | 0.00091279 | 0.00023897 |
+---------------------------+------------+-----------------+------------------+
```

1. `Control` - This is vanilla rails app without Timber installed.
2. `Timber probels only` - The same rails app but with the `Timber::Probes` installed, isolating probes performance.
3. `Timber probes and logging` - Testing the full Timber library, probes and adding context to each log line.

The benchmark can be run yourself via:

```console
Expand Down
2 changes: 0 additions & 2 deletions benchmark/support/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class PagesController < ActionController::Base
layout nil

def index
# Similuate above average logging for a single action
25.times { Rails.logger.info("this is a test log message") }
render json: {}
end

Expand Down

0 comments on commit ed340f8

Please sign in to comment.