{"id":16048232,"url":"https://github.com/madhusudhand/node-performance","last_synced_at":"2025-04-05T06:40:18.663Z","repository":{"id":95358250,"uuid":"77270179","full_name":"madhusudhand/node-performance","owner":"madhusudhand","description":"Performance metrics of different NodeJS frameworks","archived":false,"fork":false,"pushed_at":"2017-07-21T08:31:12.000Z","size":17,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-10T14:21:12.253Z","etag":null,"topics":["donode","express","express-js","expressjs","hapi","hapijs","node-js","nodejs","performance","performance-analysis","performance-metrics","performance-test","restify","restifyjs"],"latest_commit_sha":null,"homepage":"","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/madhusudhand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-12-24T06:46:17.000Z","updated_at":"2022-11-16T13:21:43.000Z","dependencies_parsed_at":"2023-04-10T15:01:06.722Z","dependency_job_id":null,"html_url":"https://github.com/madhusudhand/node-performance","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"682af56fa9728d874bd2b3473d346d58b0efbae2"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhusudhand%2Fnode-performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhusudhand%2Fnode-performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhusudhand%2Fnode-performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhusudhand%2Fnode-performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhusudhand","download_url":"https://codeload.github.com/madhusudhand/node-performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299784,"owners_count":20916183,"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":["donode","express","express-js","expressjs","hapi","hapijs","node-js","nodejs","performance","performance-analysis","performance-metrics","performance-test","restify","restifyjs"],"created_at":"2024-10-09T00:05:22.884Z","updated_at":"2025-04-05T06:40:18.617Z","avatar_url":"https://github.com/madhusudhand.png","language":"JavaScript","readme":"# node-performance\n\nIn this repo, I've run a round of tests for different node frameworks.\n\n## Results\n\n| Rank | Framework | Version      | Req. served Per Sec. |\n| ---- | --------- | ------------ | -------------------- |\n| #1   | donode    | 1.0.0-beta.3 | 1200 - 1300          |\n| #2   | express   | 4.14.1       | 900  - 1200          |\n| #3   | restify   | 4.3.0        | 900  - 1150          |\n| #4   | hapi      | 16.1.0       | 350  - 500           |\n\nOut of the listed frameworks results are quite near for all except for **hapi**.\n\nhapi seems to be damn slower and clearly out of race.\n\n**GET:** \n\nexpress and restify are serving around **1200** requests per second. \n\nWhereas *donode* is slightly higher and is **1250+** requests per second.\n\n**POST:** \n\nrestify and express *POST* requests are not as performant as their *GET* requests. They are slightly slower and are about **1000** requests per sercond.\n\nWhereas **donode** performing almost equal to its *GET* requests at a rate about **1200** requests per second.\n\n#### donode wins !!\n\nThis framework is performing better than all in all categories and also code looks pretty much organized.\nBut its a **new framework** and currently in **beta** version.\n\n### Detailed results\n\nI've broken the results down and by request type have included requests served per sec and mean latency.\n\nNote:- Two tests performed per request type here are the observed results.\n\n| Framework | Request type | Req. served Per Sec. | Mean Latency |\n| --------- | ------------ | -------------------- | ------------ |\n| donode    | GET          | 1262                 | 15.8 ms      |\n|           |              | 1203                 | 16.5 ms      |\n|           | POST         | 1214                 | 16.4 ms      |\n|           |              | 1218                 | 16.3 ms      |\n| express   | GET          | 1135                 | 17.5 ms      |\n|           |              | 989                  | 20.1 ms      |\n|           | POST         | 1038                 | 19.2 ms      |\n|           |              | 907                  | 21.9 ms      |\n| restify   | GET          | 1220                 | 16.3 ms      |\n|           |              | 1158                 | 17.2 ms      |\n|           | POST         | 957                  | 20.8 ms      |\n|           |              | 935                  | 21.2 ms      |\n| hapi      | GET          | 496                  | 40.2 ms      |\n|           |              | 418                  | 47.7 ms      |\n|           | POST         | 349                  | 57.1 ms      |\n|           |              | 389                  | 51.3 ms      |\n\n#### Test conditions\n\n\n| Condition               | Values/Comments |\n| ----------------------- | --------------- |\n| Number of requests sent | 10,000          |\n| Concurrency             | 20 requests     |\n| Routes                  | 10 different routes with route params |\n| Computer Config         |                 |\n|   - OS                  | Mac 10.12.3     |\n|   - RAM                 | 16 GB           |\n|   - Processor           | 2.5 GHz Intel Core i5 |\n| Node version            | 6.9             |\n\n\n\n## Running Tests\n\n1. clone this repo\n2. npm install (run another \"npm install\" inside donode directory)\n3. npm install -g loadtest\n4. npm run framework-name\n\nand loadtest using the following.\n\n#### GET\n\n```sh\nloadtest -n 10000 -c 20 http://localhost:3000/loadtest/get/10/data10/20\n```\n\n#### POST\n\n```sh\nloadtest -n 10000 -c 20 -m POST -T application/json -P '{\"key\": \"value\"}' http://localhost:3000/loadtest/post/1/data10/2\n```\n\n\u003e TODO: Test execution needs to be simplified.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhusudhand%2Fnode-performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhusudhand%2Fnode-performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhusudhand%2Fnode-performance/lists"}