{"id":15083931,"url":"https://github.com/iamrajhans/node-deno-benchmark","last_synced_at":"2026-01-03T12:36:06.695Z","repository":{"id":251004739,"uuid":"836077772","full_name":"iamrajhans/node-deno-benchmark","owner":"iamrajhans","description":"simple http server using nodejs","archived":false,"fork":false,"pushed_at":"2024-07-31T07:26:20.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T10:28:48.168Z","etag":null,"topics":["bombardier","deno","nodejs"],"latest_commit_sha":null,"homepage":"","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/iamrajhans.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":"2024-07-31T05:47:02.000Z","updated_at":"2024-07-31T07:27:35.000Z","dependencies_parsed_at":"2024-07-31T08:49:08.708Z","dependency_job_id":null,"html_url":"https://github.com/iamrajhans/node-deno-benchmark","commit_stats":null,"previous_names":["iamrajhans/node-deno-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrajhans%2Fnode-deno-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrajhans%2Fnode-deno-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrajhans%2Fnode-deno-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamrajhans%2Fnode-deno-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamrajhans","download_url":"https://codeload.github.com/iamrajhans/node-deno-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955715,"owners_count":20374372,"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":["bombardier","deno","nodejs"],"created_at":"2024-09-25T07:00:24.540Z","updated_at":"2026-01-03T12:36:06.569Z","avatar_url":"https://github.com/iamrajhans.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTTP Server Benchmark: Node.js vs Deno\n\nThis repository contains a benchmark comparison of HTTP servers implemented using Node.js and Deno. The goal is to evaluate the performance differences between these two environments in handling HTTP requests.\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Setup](#setup)\n- [Running the Benchmark](#running-the-benchmark)\n\n## Introduction\n\nNode.js and Deno are both JavaScript/TypeScript runtime environments. Node.js has been widely used for server-side development, while Deno is a newer runtime created by the original developer of Node.js, Ryan Dahl. This benchmark aims to provide insights into the performance of HTTP servers in these two environments.\n\n\u003e NOTE: while using node cluster there will be some issue if you manage any kind of in-memory caching or global state that needs to be shared between these processes\n\n## Setup\n\n### Prerequisites\n\n- Node.js (20.15.1)\n- Deno (1.45.4)\n- bombardier\n\n\n## Running the Benchmark\n\nTo benchmark the servers, we will use bombardier\n\n1. Start the Node.js server:\n\n```bash\nnode baseline.mjs\n```\n\n2. Start the Deno server:\n\n```bash\ndeno run --allow-all baseline.mjs\n```\n\n3. Benchmark using [bombardier](https://github.com/codesenberg/bombardier):\n\n### Node.js\n```bash\n$ bombardier -n 10000 -c 30 http://localhost:8001/\nBombarding http://localhost:8001/ with 10000 request(s) using 30 connection(s)\n 10000 / 10000 [=========================================================================================================================================================================] 100.00% 2622/s 3s\nDone!\nStatistics        Avg      Stdev        Max\n  Reqs/sec      2642.36     362.15    4325.58\n  Latency       11.36ms     3.87ms    58.77ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   530.32KB/s\n```\n\n### Deno\n\n```bash\n$ bombardier -n 10000 -c 30 http://localhost:8001/\nBombarding http://localhost:8001/ with 10000 request(s) using 30 connection(s)\n 10000 / 10000 [=========================================================================================================================================================================] 100.00% 1847/s 5s\nDone!\nStatistics        Avg      Stdev        Max\n  Reqs/sec      1853.93     414.48    2985.33\n  Latency       16.20ms     3.29ms    49.81ms\n  HTTP codes:\n    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0\n    others - 0\n  Throughput:   328.77KB/s\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamrajhans%2Fnode-deno-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamrajhans%2Fnode-deno-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamrajhans%2Fnode-deno-benchmark/lists"}