{"id":15510871,"url":"https://github.com/pcai/ruby-http-benchmarks","last_synced_at":"2025-03-27T06:21:19.627Z","repository":{"id":146618672,"uuid":"564637899","full_name":"pcai/ruby-http-benchmarks","owner":"pcai","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-09T16:48:41.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T11:27:06.400Z","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/pcai.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":"2022-11-11T06:24:41.000Z","updated_at":"2024-09-12T02:11:52.000Z","dependencies_parsed_at":"2024-12-05T19:31:24.401Z","dependency_job_id":null,"html_url":"https://github.com/pcai/ruby-http-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/pcai%2Fruby-http-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcai%2Fruby-http-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcai%2Fruby-http-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcai%2Fruby-http-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcai","download_url":"https://codeload.github.com/pcai/ruby-http-benchmarks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245792443,"owners_count":20672764,"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-02T09:51:32.511Z","updated_at":"2025-03-27T06:21:19.600Z","avatar_url":"https://github.com/pcai.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-http-benchmarks\n\nSome benchmarks comparing memory usage among various http clients in ruby. The goal is to measure the memory usage of loading the library into the process AND making a single GET request to an arbitrary URL.\n\n# Install\n\n`bundle install`\n\n# Benchmarking\n\nStart the server: `bundle exec puma`\n\nIn a new terminal, run the benchmark: `ruby download.rb`\n\n# Results\n\nIn ruby 3.1.2:\n\n```\nNet::HTTP: 0.16 MB\nRestClient: 1.72 MB\nfaraday: 2.43 MB\nHTTParty: 5.57 MB\nhttp.rb: 7.53 MB\n```\n# Known issues\n\nThe results are fairly reproducible, but the order seems to drastically change the results, with a big penalty for being in the first position. \n\nFor the results above I varied the position of the libraries for each run and picked the best of 5 runs.\n\n# Credits\n\nInspired by this gist https://gist.github.com/janko/238bbcc78b369ce3438365e5507bc671\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcai%2Fruby-http-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcai%2Fruby-http-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcai%2Fruby-http-benchmarks/lists"}