https://github.com/rubocop/rubocop-performance
An extension of RuboCop focused on code performance checks.
https://github.com/rubocop/rubocop-performance
Keywords
code-formatter hacktoberfest linter rubocop ruby static-code-analysis
Keywords from Contributors
activerecord activejob mvc rspec rubygems rack static-analysis capybara gem sinatra
Last synced: about 13 hours ago
JSON representation
Repository metadata
An extension of RuboCop focused on code performance checks.
- Host: GitHub
- URL: https://github.com/rubocop/rubocop-performance
- Owner: rubocop
- License: mit
- Created: 2018-06-10T12:08:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-11-25T16:23:07.000Z (21 days ago)
- Last Synced: 2025-12-07T12:27:34.910Z (9 days ago)
- Topics: code-formatter, hacktoberfest, linter, rubocop, ruby, static-code-analysis
- Language: Ruby
- Homepage: https://docs.rubocop.org/rubocop-performance
- Size: 24.8 MB
- Stars: 724
- Watchers: 10
- Forks: 87
- Open Issues: 64
- Releases: 58
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
README.md
RuboCop Performance
Performance optimization analysis for your projects, as an extension to RuboCop.
Installation
Just install the rubocop-performance gem
$ gem install rubocop-performance
or if you use bundler put this in your Gemfile
gem 'rubocop-performance', require: false
Usage
You need to tell RuboCop to load the Performance extension. There are three
ways to do this:
RuboCop configuration file
Put this into your .rubocop.yml.
plugins: rubocop-performance
Alternatively, use the following array notation when specifying multiple extensions.
plugins:
- rubocop-other-extension
- rubocop-performance
Now you can run rubocop and it will automatically load the RuboCop Performance
cops together with the standard cops.
[!NOTE]
The plugin system is supported in RuboCop 1.72+. In earlier versions, userequireinstead ofplugins.
Command line
$ rubocop --plugin rubocop-performance
Rake task
require 'rubocop/rake_task'
RuboCop::RakeTask.new do |task|
task.plugins << 'rubocop-performance'
end
The Cops
All cops are located under
lib/rubocop/cop/performance, and contain
examples/documentation.
In your .rubocop.yml, you may treat the Performance cops just like any other
cop. For example:
Performance/Size:
Exclude:
- lib/example.rb
Documentation
You can read a lot more about RuboCop Performance in its official docs.
Compatibility
RuboCop Performance is compatible with RuboCop core.
See the compatibility documentation for further details.
Note: Performance cops are all MRI focused and are highly dependent of the version of MRI you're using.
Contributing
Checkout the contribution guidelines.
License
rubocop-performance is MIT licensed. See the accompanying file for
the full text.
Owner metadata
- Name: RuboCop Headquarters
- Login: rubocop
- Email:
- Kind: organization
- Description: We're committed to promoting the best Ruby programming practices and helping people write better Ruby applications.
- Website: https://rubocop.org
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/10871348?v=4
- Repositories: 28
- Last ynced at: 2024-03-25T19:40:52.798Z
- Profile URL: https://github.com/rubocop
GitHub Events
Total
- Create event: 6
- Release event: 4
- Issues event: 18
- Watch event: 37
- Delete event: 1
- Issue comment event: 60
- Push event: 54
- Pull request event: 50
- Pull request review event: 40
- Pull request review comment event: 38
- Fork event: 7
Last Year
- Create event: 5
- Release event: 4
- Issues event: 16
- Watch event: 31
- Delete event: 1
- Issue comment event: 41
- Push event: 49
- Pull request review event: 30
- Pull request review comment event: 30
- Pull request event: 45
- Fork event: 6
Committers metadata
Last synced: about 14 hours ago
Total Commits: 905
Total Committers: 79
Avg Commits per committer: 11.456
Development Distribution Score (DDS): 0.42
Commits in past year: 61
Committers in past year: 9
Avg Commits per committer in past year: 6.778
Development Distribution Score (DDS) in past year: 0.344
| Name | Commits | |
|---|---|---|
| Koichi ITO | k****o@g****m | 525 |
| Ryan Rosenblum | r****m@g****m | 67 |
| fatkodima | f****3@g****m | 30 |
| Alex Dowad | a****g@g****m | 28 |
| Ted Johansson | d****i@g****m | 26 |
| Masataka Kuwabara | k****a@p****e | 22 |
| Teemu | t****u@a****n | 19 |
| Earlopain | 1****n | 17 |
| John Backus | j****s@g****m | 16 |
| Jonas Arvidsson | j****4@g****m | 9 |
| viralpraxis | i****k@g****m | 8 |
| Eugene Kenny | e****y@g****m | 7 |
| Daniel Vandersluis | d****s@g****m | 7 |
| Garett Arrowood | g****d@g****m | 7 |
| palkan | d****m@g****m | 6 |
| Samuel Giddins | s****s@s****e | 6 |
| Daniel Colson | d****n@g****m | 6 |
| Bozhidar Batsov | b****r@b****m | 6 |
| dependabot[bot] | 4****] | 5 |
| ydah | 1****h | 5 |
| Piotr Szotkowski | c****l@c****t | 4 |
| Ryo Nakamura | r****a@g****m | 4 |
| Tejas Bubane | t****e@g****m | 3 |
| Leo Arnold | g****b@l****e | 3 |
| Parker Finch | p****h@p****m | 3 |
| Benjamin Quorning | b****n@q****t | 3 |
| Ryusuke Homma | r****a@u****m | 2 |
| Michael Siegfried | m****l@p****m | 2 |
| Viktar Basharymau | v****u@g****m | 2 |
| ymap | y****v@g****m | 2 |
| and 49 more... | ||
Committer domains:
- owenstephens.co.uk: 1
- infinum.hr: 1
- shakenbu.org: 1
- kohlvanwijngaarden.nl: 1
- riseup.net: 1
- gusto.com: 1
- ebip.co.uk: 1
- kickstarter.com: 1
- mobiwm.com: 1
- gophilosophie.com: 1
- hyp3r.com: 1
- polleverywhere.com: 1
- coxautoinc.com: 1
- ojab.ru: 1
- bfpi.de: 1
- alpaca.tc: 1
- gmx.de: 1
- urbanautomaton.com: 1
- cookpad.com: 1
- quang.be: 1
- gmx.net: 1
- tinkerbox.com.sg: 1
- tanda.co: 1
- matijs.net: 1
- procore.com: 1
- unifa-e.com: 1
- quorning.net: 1
- panoramaed.com: 1
- leoarnold.de: 1
- chastell.net: 1
- batsov.com: 1
- segiddins.me: 1
- aikais.in: 1
- pocke.me: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 112
Total pull requests: 192
Average time to close issues: about 1 month
Average time to close pull requests: about 1 month
Total issue authors: 61
Total pull request authors: 36
Average comments per issue: 1.18
Average comments per pull request: 0.99
Merged pull request: 150
Bot issues: 0
Bot pull requests: 5
Past year issues: 13
Past year pull requests: 45
Past year average time to close issues: 3 days
Past year average time to close pull requests: 4 days
Past year issue authors: 10
Past year pull request authors: 12
Past year average comments per issue: 0.69
Past year average comments per pull request: 0.49
Past year merged pull request: 35
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- ydakuka (30)
- vlad-pisanov (6)
- fatkodima (5)
- forthrin (4)
- Earlopain (2)
- corsonknowles (2)
- dgollahon (2)
- DannyBen (2)
- MatzFan (2)
- viralpraxis (2)
- wteuber (2)
- amomchilov (2)
- tagliala (2)
- TastyPi (2)
- sambostock (1)
Top Pull Request Authors
- koic (66)
- Earlopain (27)
- viralpraxis (16)
- fatkodima (11)
- r7kamura (6)
- ydah (6)
- dvandersluis (6)
- dependabot[bot] (5)
- amomchilov (4)
- leoarnold (4)
- corsonknowles (4)
- mvz (2)
- a-lavis (2)
- parkerfinch (2)
- okuramasafumi (2)
Top Issue Labels
- bug (21)
- enhancement (17)
- duplicate (1)
Top Pull Request Labels
- dependencies (5)
- github_actions (2)
Package metadata
- Total packages: 3
-
Total downloads:
- rubygems: 524,304,283 total
- Total docker downloads: 1,413,541,478
- Total dependent packages: 1,623 (may contain duplicates)
- Total dependent repositories: 28,810 (may contain duplicates)
- Total versions: 294
- Total maintainers: 2
gem.coop: rubocop-performance
A collection of RuboCop cops to check for performance optimizations in Ruby code.
- Homepage: https://docs.rubocop.org/rubocop-performance/
- Documentation: http://www.rubydoc.info/gems/rubocop-performance/
- Licenses: MIT
- Latest release: 1.26.1 (published about 2 months ago)
- Last Synced: 2025-12-15T23:02:17.592Z (1 day ago)
- Versions: 60
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 262,194,814 Total
- Docker Downloads: 706,770,739
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.057%
- Downloads: 0.097%
- Docker downloads count: 0.13%
- Maintainers (2)
rubygems.org: rubocop-performance
A collection of RuboCop cops to check for performance optimizations in Ruby code.
- Homepage: https://docs.rubocop.org/rubocop-performance/
- Documentation: http://www.rubydoc.info/gems/rubocop-performance/
- Licenses: MIT
- Latest release: 1.26.1 (published about 2 months ago)
- Last Synced: 2025-12-15T17:01:17.121Z (1 day ago)
- Versions: 60
- Dependent Packages: 1,623
- Dependent Repositories: 28,810
- Downloads: 262,109,469 Total
- Docker Downloads: 706,770,739
-
Rankings:
- Dependent packages count: 0.033%
- Downloads: 0.121%
- Docker downloads count: 0.178%
- Dependent repos count: 0.209%
- Average: 0.974%
- Stargazers count: 2.303%
- Forks count: 2.997%
- Maintainers (2)
proxy.golang.org: github.com/rubocop/rubocop-performance
- Homepage:
- Documentation: https://pkg.go.dev/github.com/rubocop/rubocop-performance#section-documentation
- Licenses: mit
- Latest release: v1.26.1 (published about 2 months ago)
- Last Synced: 2025-12-14T10:05:17.816Z (3 days ago)
- Versions: 174
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 6.48%
- Average: 6.698%
- Dependent repos count: 6.917%
Dependencies
- bump >= 0
- rake >= 0
- rspec >= 0
- rubocop >= 0
- rubocop-rspec ~> 2.9.0
- simplecov >= 0
- test-queue >= 0
- yard ~> 0.9
- rubocop >= 1.7.0, < 2.0
- rubocop-ast >= 0.4.0
Score: 32.42380522676778