{"id":17033085,"url":"https://github.com/gbbr/benchmark-node-go","last_synced_at":"2026-05-09T17:42:02.511Z","repository":{"id":18809464,"uuid":"22023962","full_name":"gbbr/benchmark-node-go","owner":"gbbr","description":"Benchmarking Concurrent Network Performance","archived":false,"fork":false,"pushed_at":"2014-07-22T23:05:51.000Z","size":3787,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T01:15:23.645Z","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/gbbr.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}},"created_at":"2014-07-20T02:08:35.000Z","updated_at":"2020-05-27T18:42:19.000Z","dependencies_parsed_at":"2022-09-25T02:41:30.592Z","dependency_job_id":null,"html_url":"https://github.com/gbbr/benchmark-node-go","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/gbbr%2Fbenchmark-node-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fbenchmark-node-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fbenchmark-node-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gbbr%2Fbenchmark-node-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gbbr","download_url":"https://codeload.github.com/gbbr/benchmark-node-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020941,"owners_count":20548266,"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-14T08:32:19.037Z","updated_at":"2026-05-09T17:41:57.467Z","avatar_url":"https://github.com/gbbr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### NodeJS vs Go Concurrent Network Performance Benchmark\n\nTest scenario is as follows:\n\nA TCP server (written in Go, and compiled) is provided, which opens port 1234 and welcomes connections. Each client that connects gets sent the byte value of the character \"X\" after a 1 second wait time, followed by disconnection.\n\nTo start the server run the `server` binary that is located inside the server folder. A NodeJS version of the server is also provided.\n\nAfter the server is started, run the tests using `node testRunner.js`. Number of connections in test can be changed by altering the `CONNECTIONS` constant inside each of the tests. There is also a limit on the OS as to how many TCP connections area allowed at any given time, to change this, see: http://stackoverflow.com/questions/7578594/how-to-increase-limits-on-sockets-on-osx-for-load-testing\n\nSome results I've obtained for 5000 connections are below:\n\n| Go        | NodeJS           |\n| ------------- |:-------------:|\n| 1.076 sec      | 1.356 sec |\n| 1.072 sec      | 1.352 sec      |\n| 1.068 sec      | 1.682 sec      |\n| 1.047 sec      | 5.487 sec      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbr%2Fbenchmark-node-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgbbr%2Fbenchmark-node-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgbbr%2Fbenchmark-node-go/lists"}