{"id":18002886,"url":"https://github.com/am-kantox/rspec-benchmarks","last_synced_at":"2025-04-04T09:15:28.746Z","repository":{"id":31601349,"uuid":"35166227","full_name":"am-kantox/rspec-benchmarks","owner":"am-kantox","description":"Handy measures for rspec tests. SQL/View/Controller separated reports. Sophisticated SQL analysis.","archived":false,"fork":false,"pushed_at":"2015-05-08T15:31:28.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T19:53:14.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/am-kantox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T15:15:33.000Z","updated_at":"2015-05-08T15:31:28.000Z","dependencies_parsed_at":"2022-08-26T09:00:53.719Z","dependency_job_id":null,"html_url":"https://github.com/am-kantox/rspec-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Frspec-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Frspec-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Frspec-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/am-kantox%2Frspec-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/am-kantox","download_url":"https://codeload.github.com/am-kantox/rspec-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149510,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T23:24:22.441Z","updated_at":"2025-04-04T09:15:28.717Z","avatar_url":"https://github.com/am-kantox.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rspec::Benchmarks\n\nThis gem provides benchmarks-on-steroids functionality to rspec. Currently it allows:\n\n* print out summaries on [view, controller, db] access for each rspec example; pitfalls: different rails events show ...hummm... very different times, still trying to configure out wtf (rails developers are definitely anarchists, please refer to _“Anthropology from a Pragmatic Point of View”_ by Immanuel Kant;)\n* adopted SQL lexer to build AST based on db queries; it was sexy but I still can’t understand what I have this implemented for (possible application: analysis of heavy queries by their structure)\n* ability to make examples _fail_ unless they are passed in specified timeslice (relative times are used, no dependence on target machine equipment, times are normalized by precalculated value)\n* ability to turn on the full benchmark logging (holy load of statistics.)\n* pickup tests to run from git commit;\n* highly tunable running config.\n\n## Impression\n\n![RSpec::Benchmarks Screenshot](https://github.com/kantox/kantox-flow/wiki/rspec-benchmarks.png)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'rspec-benchmarks'\n```\n\n## Usage\n\n    $ BENCHMARK=true bundle exec rspec `bspec last:5`\n\nI know it’s ugly syntax, but it will execute five last specs added (basing on git history.)\n\nOr, more usable:\n\n    $ BENCHMARK=true bundle exec rspec spec/controllers/my_controller.rb\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/rspec-benchmarks/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam-kantox%2Frspec-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fam-kantox%2Frspec-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fam-kantox%2Frspec-benchmarks/lists"}