Stats.fyi is an open source application that can be used to share your Rails Stats (`rake stats`) results and compare them to other applications out there in the interwebs.

Getting Started

You will need to use the `fast_ruby-rails_stats` gem in your Gemfile:

# Gemfile

# ... 

group :development do
  gem 'fast_ruby-rails_stats'
end

# ... 
          

In order to share your results using this page, you can run `rake stats` like this:

$ SHARE=true bundle exec rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name                 | Lines |   LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Models               |    34 |    28 |       2 |       3 |   1 |     7 |
| Jobs                 |     7 |     2 |       1 |       0 |   0 |     0 |
| Controllers          |    84 |    65 |       3 |       3 |   1 |    19 |
| Helpers              |    41 |    36 |       0 |       4 |   0 |     7 |
| Javascripts          |   532 |   512 |       0 |      82 |   0 |     4 |
| Configuration        |   397 |   106 |       1 |       0 |   0 |     0 |
| Integration Tests    |    21 |    18 |       1 |       1 |   1 |    16 |
| Test Support         |    10 |     6 |       1 |       0 |   0 |     0 |
| Controller Tests     |    88 |    71 |       1 |       0 |   0 |     0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total                |  1214 |   844 |      10 |      93 |   9 |     7 |
+----------------------+-------+-------+---------+---------+-----+-------+
  Code LOC: 749     Test LOC: 95     Code to Test Ratio: 1:0.1

Shared at: https://stats.fastruby.io/1335ce1

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/fastruby/stats.fyi.

This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Stats.fyi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Credits

This project is heavily inspired by benchmark.fyi. It is a fork of that project.