{"id":21405395,"url":"https://github.com/karimsa/http-bench","last_synced_at":"2025-07-07T22:10:25.720Z","repository":{"id":149730997,"uuid":"174297848","full_name":"karimsa/http-bench","owner":"karimsa","description":"PoC examples for my talk @ ForwardJS Ottawa 2019.","archived":false,"fork":false,"pushed_at":"2019-04-10T02:35:13.000Z","size":132,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:04:00.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://slides.com/karimalibhai/js-perf-2019","language":"JavaScript","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/karimsa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-03-07T07:55:01.000Z","updated_at":"2019-04-13T04:50:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"df78d74c-93ba-4965-a6b6-959c3b17c1aa","html_url":"https://github.com/karimsa/http-bench","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/karimsa%2Fhttp-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fhttp-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fhttp-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fhttp-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/http-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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-22T16:25:12.334Z","updated_at":"2025-03-16T16:51:09.558Z","avatar_url":"https://github.com/karimsa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# http-bench\n\nPoC examples for my talk @ ForwardJS Ottawa 2019.\n\nSlides: https://slides.com/karimalibhai/js-perf-2019\n\n## Usage\n\n### Source files\n\nThe source code for the example is in the following files:\n\n- pure express code: [benchmarks/express.js](benchmarks/express.js)\n- express-like code with macros: [src/express.js](src/express.js)\n- node bare http code: [benchmarks/bare.js](benchmarks/bare.js)\n\n### Building the rest\n\nThere are two examples that get compiled:\n\n- `express-macros`: this example uses `babel-plugin-macros` to show an express-like API that gets compiled into bare node http code.\n- `express-minified`: this example is just a bundled + minified copy of the express example.\n\nTo build these examples, simply run `npm run build`.\n\n### Scripts\n\n- `./scripts/bench-boot`: takes a number \u0026 a command as a string - will execute the command that many times and display the average command startup time.\n- `./scripts/bench`: takes a number \u0026 a space-separated list of benchmark names. Runs benchmarks for those examples via the fastify benchmarks toolset \u0026 displays the results.\n- `./scripts/_bench`: same args as `./scripts/bench` but will not display the results.\n- `./scripts/display`: takes a space-separated list of benchmarks names \u0026 only displays the results (does not run the benchmarks).\n\n## License\n\nLicensed under MIT license.\n\nRepository is forked from [fastify benchmarks](https://github.com/fastify/benchmarks) (also under MIT license).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fhttp-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fhttp-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fhttp-bench/lists"}