{"id":16732347,"url":"https://github.com/carpodaster/dreamstream","last_synced_at":"2025-10-18T03:38:46.379Z","repository":{"id":138400351,"uuid":"166015314","full_name":"carpodaster/dreamstream","owner":"carpodaster","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-16T11:07:26.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T08:38:04.292Z","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/carpodaster.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":"2019-01-16T09:49:17.000Z","updated_at":"2023-02-28T00:18:14.000Z","dependencies_parsed_at":"2023-03-13T10:54:07.276Z","dependency_job_id":null,"html_url":"https://github.com/carpodaster/dreamstream","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/carpodaster%2Fdreamstream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carpodaster%2Fdreamstream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carpodaster%2Fdreamstream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carpodaster%2Fdreamstream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carpodaster","download_url":"https://codeload.github.com/carpodaster/dreamstream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243779188,"owners_count":20346674,"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-12T23:43:56.191Z","updated_at":"2025-10-18T03:38:41.327Z","avatar_url":"https://github.com/carpodaster.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DreamStream\n\nA test bed for multi-threaded CSV exports streamed directly to the client.\n\n## Motivation\n\n## Installation\n1. Clone\n2. `bundle install`\n3. `ruby app.rb`\n4. Hit `http://localhost:4567/export/sequentially` and `http://localhost:4567/export/parallel` to see the difference\n\n## Benchmark\n\n### Sequential run\n\n```\nab -c1 -n5 http://localhost:4567/export/sequentially\n\nThis is ApacheBench, Version 2.3 \u003c$Revision: 1807734 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking localhost (be patient).....done\n\n\nServer Software:\nServer Hostname:        localhost\nServer Port:            4567\n\nDocument Path:          /export/sequentially\nDocument Length:        2392 bytes\n\nConcurrency Level:      1\nTime taken for tests:   51.228 seconds\nComplete requests:      5\nFailed requests:        0\nTotal transferred:      12710 bytes\nHTML transferred:       11960 bytes\nRequests per second:    0.10 [#/sec] (mean)\nTime per request:       10245.522 [ms] (mean)\nTime per request:       10245.522 [ms] (mean, across all concurrent requests)\nTransfer rate:          0.24 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        0    0   0.0      0       0\nProcessing: 10216 10245  23.4  10259   10267\nWaiting:        1    1   0.2      1       1\nTotal:      10216 10245  23.4  10259   10267\n\nPercentage of the requests served within a certain time (ms)\n  50%  10252\n  66%  10267\n  75%  10267\n  80%  10267\n  90%  10267\n  95%  10267\n  98%  10267\n  99%  10267\n 100%  10267 (longest request)\n ```\n \n ### Multi-thread run\n \n ```\n ab -c1 -n5 http://localhost:4567/export/parallel\n This is ApacheBench, Version 2.3 \u003c$Revision: 1807734 $\u003e\nCopyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\nLicensed to The Apache Software Foundation, http://www.apache.org/\n\nBenchmarking localhost (be patient).....done\n\n\nServer Software:\nServer Hostname:        localhost\nServer Port:            4567\n\nDocument Path:          /export/parallel\nDocument Length:        0 bytes\n\nConcurrency Level:      1\nTime taken for tests:   16.496 seconds\nComplete requests:      5\nFailed requests:        4\n   (Connect: 0, Receive: 0, Length: 4, Exceptions: 0)\nTotal transferred:      8570 bytes\nHTML transferred:       7820 bytes\nRequests per second:    0.30 [#/sec] (mean)\nTime per request:       3299.294 [ms] (mean)\nTime per request:       3299.294 [ms] (mean, across all concurrent requests)\nTransfer rate:          0.51 [Kbytes/sec] received\n\nConnection Times (ms)\n              min  mean[+/-sd] median   max\nConnect:        0    0   0.0      0       0\nProcessing:     1 3299 1843.6   4124    4138\nWaiting:        1    1   0.2      1       1\nTotal:          1 3299 1843.6   4125    4138\n\nPercentage of the requests served within a certain time (ms)\n  50%   4112\n  66%   4137\n  75%   4137\n  80%   4138\n  90%   4138\n  95%   4138\n  98%   4138\n  99%   4138\n 100%   4138 (longest request)\n ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarpodaster%2Fdreamstream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarpodaster%2Fdreamstream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarpodaster%2Fdreamstream/lists"}