{"id":17355162,"url":"https://github.com/zephinzer/hello-benchmark","last_synced_at":"2025-09-16T18:33:28.472Z","repository":{"id":79926655,"uuid":"119068740","full_name":"zephinzer/hello-benchmark","owner":"zephinzer","description":"Benchmark stress tests against a multitude of controlled runtimes and frameworks","archived":false,"fork":false,"pushed_at":"2018-01-26T18:15:45.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T18:27:10.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/zephinzer.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":"2018-01-26T15:32:37.000Z","updated_at":"2018-01-26T18:14:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"58109bfa-c1d3-412f-abd0-deb380c2decb","html_url":"https://github.com/zephinzer/hello-benchmark","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/zephinzer%2Fhello-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fhello-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fhello-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fhello-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephinzer","download_url":"https://codeload.github.com/zephinzer/hello-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858880,"owners_count":20684062,"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-15T17:42:31.119Z","updated_at":"2025-09-16T18:33:23.391Z","avatar_url":"https://github.com/zephinzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hello Benchmark\nThis is a collection of Hello World applications for use with benchmark tests.\n\n## Get Started\nThe benchmark tests require a fixed CPU and memory so that we can experiment with how to scale out various runtimes and frameworks. Hence we deploy the applications of interest to a local Docker Swarm.\n\n### Pre-requisites\nYou will need Docker Community Edition (CE). Get it for your respective operating system from https://www.docker.com/community-edition#/download.\n\n### TL;DR\nTwo convenience scripts are provided for you:\n\n- `./setup.sh`\n- `./teardown.sh`\n\nTheir use cases are left as an exercise to the reader.\n\n### In Detail\nTo get started locally, run the following to **provision a single-node Docker Swarm**\n\n```bash\ndocker swarm init\n```\n\nNext, **create a throwaway Docker Registry**:\n\n```bash\ndocker service create --name registry --publish published=5000,target=5000 registry:2\n```\n\nThen **build all applications**:\n\n```bash\ndocker-compose build\n```\n\nAnd then **push all application images to the throwaway repository**:\n\n```bash\ndocker-compose push\n```\n\nFinally, **run all of them**:\n\n```bash\ndocker stack deploy --compose-file docker-compose.yml hello_benchmark\n```\n\n## Testing\n\n### Methodology\n\nFrom this repository, we can control for both vertical and horizontal scaling to see how well different runtimes/frameworks perform under stress.\n\nTo scale a service vertically, increase the CPU or Memory from the `docker-compose.yml` file.\n\nTo scale a service horizontally, increase the number of replicas.\n\nFind out what works for what runtime!\n\nHere's some ideas:\n\n#### Breaking Point Estimation\n\nGradually scale up the number of concurrent connections starting from 100 until errors begin to happen.\n\n### Tools\n\n#### Autocannon\nAutocannon is a nice tool which provides some reasonable statistics.\n\nInstall it with:\n\n```bash\nnpm i -g autocannon\n```\n\nRun it against any of the services with:\n\n```bash\nautocannon -c 20 -d 10 http://localhost:%PORT%\n```\n\n## Contributing\nWant to test more frameworks/runtimes? Create a directory describing your tested runtime/library/framework and submit a merge request!\n\nCheers!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephinzer%2Fhello-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephinzer%2Fhello-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephinzer%2Fhello-benchmark/lists"}