{"id":27185850,"url":"https://github.com/inv2004/mongo_watch_bench","last_synced_at":"2025-04-09T17:55:10.502Z","repository":{"id":161015343,"uuid":"330778116","full_name":"inv2004/mongo_watch_bench","owner":"inv2004","description":"Small tool to benchmark mongodb inserts/readers","archived":false,"fork":false,"pushed_at":"2021-01-18T21:47:30.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T04:30:25.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/inv2004.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":"2021-01-18T20:23:03.000Z","updated_at":"2021-01-18T21:47:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"b971b57b-4b20-4c35-ab9c-82473d09658b","html_url":"https://github.com/inv2004/mongo_watch_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/inv2004%2Fmongo_watch_bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Fmongo_watch_bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Fmongo_watch_bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inv2004%2Fmongo_watch_bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inv2004","download_url":"https://codeload.github.com/inv2004/mongo_watch_bench/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248083588,"owners_count":21045122,"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":"2025-04-09T17:55:09.794Z","updated_at":"2025-04-09T17:55:10.478Z","avatar_url":"https://github.com/inv2004.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bench\r\n\r\nSmall tool to bench mongo ChangeStream latency\r\n\r\n### Help\r\n```\r\nUsage of C:\\Users\\unknown\\AppData\\Local\\Temp\\go-build767003074\\b001\\exe\\bench.exe:\r\n  -r int\r\n        amount of readers processes (read all data without filtering) (default 1)\r\n  -rows int\r\n        number of rows to insert per sender (default 1)\r\n  -s int\r\n        amount of sender processes (default 1)\r\n```\r\n\r\n### Run\r\n```bash\r\n./bench.exe -rows 1000 -r 1 -s 1\r\n```\r\n\r\n### Output\r\n```\r\nrows = 1000, senders = 1, readers = 1\r\n[sender-0] 1000 in 96.9463ms   /// time to insert 1000 rows, insert runs on 1000ms intervals, so the number should be less\r\n[reader-0] 13.855ms            /// maximum latency per reader\r\n[sender-0] 1000 in 87.9497ms\r\n[reader-0] 13.3393ms\r\n[sender-0] 1000 in 92.0267ms\r\n[reader-0] 13.4515ms\r\n```\r\n\r\n### Some Tests\r\n#### DigitalOcean\r\nIntel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz / 64Gb\r\n\r\n```bash\r\n./bench -rows 3500 -s 10 -r 1\r\n```\r\navg latency 238ms\r\n\r\n```bash\r\n./bench -rows 3500 -s 10 -r 4\r\n```\r\navg latency 295ms\r\n\r\n\r\n### ScaleWay\r\nAMD EPYC 7281 16-Core Processor / 96Gb\r\n\r\n```bash\r\n./bench --rows 1350 -s 10 -r 1\r\n```\r\navg latency 157ms\r\n\r\n```bash\r\n./bench --rows 1350 -s 10 -r 10\r\n```\r\navg latency 159ms\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finv2004%2Fmongo_watch_bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finv2004%2Fmongo_watch_bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finv2004%2Fmongo_watch_bench/lists"}