{"id":20354380,"url":"https://github.com/hemerajs/microservice-benchmark","last_synced_at":"2025-03-04T16:45:17.259Z","repository":{"id":76944231,"uuid":"105685201","full_name":"hemerajs/microservice-benchmark","owner":"hemerajs","description":"Simple benchmark for microservice frameworks in Node.Js which support NATS as transport.","archived":false,"fork":false,"pushed_at":"2018-03-28T21:10:05.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-15T00:38:09.686Z","etag":null,"topics":["benchmarks","hemera"],"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/hemerajs.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}},"created_at":"2017-10-03T18:04:24.000Z","updated_at":"2018-03-28T21:10:06.000Z","dependencies_parsed_at":"2024-01-23T21:15:55.581Z","dependency_job_id":"1726564a-5719-4374-86a8-78a2f4cf9dda","html_url":"https://github.com/hemerajs/microservice-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/hemerajs%2Fmicroservice-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemerajs%2Fmicroservice-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemerajs%2Fmicroservice-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hemerajs%2Fmicroservice-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hemerajs","download_url":"https://codeload.github.com/hemerajs/microservice-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241886108,"owners_count":20036959,"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":["benchmarks","hemera"],"created_at":"2024-11-14T23:08:23.204Z","updated_at":"2025-03-04T16:45:17.238Z","avatar_url":"https://github.com/hemerajs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌀 Microservice Framework Benchmark\nThis is a simple benchmark for microservice frameworks in Node.Js which support NATS as transport.\n\n## Install\n\n```\n$ npm install\n```\n\n## Run NATS\n\nhttps://nats.io/documentation/tutorials/gnatsd-install\n\n## Frameworks\n\n- Hemera 5.0.1\n- Seneca 3.4.3\n- Moleculer 0.12.1\n\n## Run simple test\n- Start one consumer\n- Send 1000 msg for 2 rounds from one producer\n\n```\n$ npm run simple\n```\n\n### Result\n```\nPlatform info:\n==============\n   Windows_NT 10.0.16299 x64\n   Node.JS: 8.9.0\n   V8: 6.1.534.46\n   Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz × 4\n==============\nWait 1 second and send 2x 1000 msg\n==============\nbenchHemera*1000: 250.641ms\nbenchMoleculerNats*1000: 433.571ms\nbenchHemera*1000: 201.187ms\nbenchMoleculerNats*1000: 355.256ms\nbenchSenecaNats FAILED\n```\n\n## Run complex test\n\n- Start x (cpu count) consumer in seperate child processes\n- Send 10000 messages for 2 rounds from one producer\n\n```\n$ node ./hemera/cluster.js\n$ node ./hemera/fire.js\n\n$ node ./moleculer/cluster.js\n$ node ./moleculer/fire.js\n\n$ node ./seneca/cluster.js\n$ node ./seneca/fire.js\n```\n\n### Result\n```\nPlatform info:\n==============\n   Windows_NT 10.0.16299 x64\n   Node.JS: 8.9.0\n   V8: 6.1.534.46\n   Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz × 4\n==============\nbenchHemera*10000: 1801.420ms\nbenchHemera*10000: 1591.466ms\nbenchMoleculerNats*10000: 3848.300ms\nbenchMoleculerNats*10000: 3511.714ms\nbenchSenecaNats FAILED\n```\n\n## TODO\n\n- [ ] Start multiple producer and bench\n- [ ] Bench consuming\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemerajs%2Fmicroservice-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhemerajs%2Fmicroservice-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhemerajs%2Fmicroservice-benchmark/lists"}