{"id":18319791,"url":"https://github.com/redding/whysoslow","last_synced_at":"2025-08-23T19:17:47.018Z","repository":{"id":56898188,"uuid":"3498174","full_name":"redding/whysoslow","owner":"redding","description":"A little runner/printer to benchmark Ruby code blocks","archived":false,"fork":false,"pushed_at":"2018-04-04T22:53:22.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-15T03:55:13.938Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/redding/whysoslow","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redding.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-02-20T21:46:13.000Z","updated_at":"2018-10-20T00:43:43.000Z","dependencies_parsed_at":"2022-08-21T02:20:19.906Z","dependency_job_id":null,"html_url":"https://github.com/redding/whysoslow","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fwhysoslow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fwhysoslow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fwhysoslow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redding%2Fwhysoslow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redding","download_url":"https://codeload.github.com/redding/whysoslow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411236,"owners_count":20934650,"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-11-05T18:14:16.448Z","updated_at":"2025-04-05T22:31:36.072Z","avatar_url":"https://github.com/redding.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whysoslow\n\n## Description\n\nWhysoslow is a little runner/printer we wrote to benchmark our Ruby code.  It runs a block of code, collects run time measurements, and can snapshot memory usage information at various points during execution.\n\nIt has no tests, shockingly sparse docs, and is more of an experiment at this point.  It comes as is for now so use if you see fit.  I will happily accept any pull requests for documentation, tests, extensions, and improvements.\n\n## Usage\n\n```ruby\nrequire 'whysoslow'\n\nprinter = Whysoslow::DefaultPrinter.new({\n  :title =\u003e \"Bench Report Title\",\n  :verbose =\u003e true\n})\n\nrunner = Whysoslow::Runner.new(@printer)\n\nrunner.run do\n  # ... some long running script or loop\n  runner.snapshot(\"mem usage during run\")\n  # ... some more long running script or loop\nend\n```\n\n## Output: DefaultPrinter\n\nThe DefaultPrinter outputs to an io stream ($stdout by default).  It uses Ansi to output columned memory usage snapshot data and measurement data.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'whysoslow'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install whysoslow\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredding%2Fwhysoslow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredding%2Fwhysoslow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredding%2Fwhysoslow/lists"}