{"id":18355361,"url":"https://github.com/midwire/ruby-profiles","last_synced_at":"2025-04-10T01:37:16.468Z","repository":{"id":140669199,"uuid":"2271011","full_name":"midwire/ruby-profiles","owner":"midwire","description":"Simple Ruby timings for common idioms and constructs","archived":false,"fork":false,"pushed_at":"2018-06-07T21:01:53.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T16:53:27.159Z","etag":null,"topics":["optimization","profile-timings","ruby"],"latest_commit_sha":null,"homepage":"","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/midwire.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-08-25T22:14:03.000Z","updated_at":"2018-06-07T21:03:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca42cb99-6af7-4ce2-b985-0c65fb13f0f2","html_url":"https://github.com/midwire/ruby-profiles","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/midwire%2Fruby-profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Fruby-profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Fruby-profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Fruby-profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midwire","download_url":"https://codeload.github.com/midwire/ruby-profiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248141356,"owners_count":21054439,"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":["optimization","profile-timings","ruby"],"created_at":"2024-11-05T22:06:40.319Z","updated_at":"2025-04-10T01:37:16.442Z","avatar_url":"https://github.com/midwire.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Just some simple timings for different constructs and common idioms in Ruby.\n\n# Installation\n\n    $ bundle install --path=vendor/bundle --binstubs=stubs\n\n# Usage\n\nJust run the scripts that you are interested in:\n\nIf you have `./stubs` in your path then no need to preprend with `bundle exec`:\n\n    $ ./string_quotes.rb\n    $ ./case_vs_if.rb\n    $ ./loop_constructs.rb\n    $ ./loop_instantiations.rb\n\nOtherwise:\n\n    $ bundle exec ./string_quotes.rb\n    $ bundle exec ./case_vs_if.rb\n    $ bundle exec ./loop_constructs.rb\n    $ bundle exec ./loop_instantiations.rb\n\n## Ruby Versions\n\nCurrently `.ruby-version` is set to 2.5.1. If you want to try a different version, just install it and set the version you want in that file.\n\n# Overview\n\nThe profiler (ruby-prof) will print out the results for each block, then after collecting each set of results, it will sort them from fastest to slowest and print out the sorted list.\n\n    Sorted Results - Fastest-to-slowest:\n    ------------------------------------\n    for x in Collection with outside instantiation     1.453473\n    for x in Collection with inside instantiation      4.695289\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Fruby-profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidwire%2Fruby-profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Fruby-profiles/lists"}