{"id":13850329,"url":"https://github.com/gophercarrot/carrot","last_synced_at":"2025-07-12T21:33:48.123Z","repository":{"id":88156493,"uuid":"98822813","full_name":"gophercarrot/carrot","owner":"gophercarrot","description":"Distributed WebSocket and HTTP Load Testing Framework in Go","archived":false,"fork":false,"pushed_at":"2018-10-15T10:39:27.000Z","size":67,"stargazers_count":153,"open_issues_count":1,"forks_count":9,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-07-21T00:33:07.754Z","etag":null,"topics":["go","golang","load-testing","stress-testing","websockets"],"latest_commit_sha":null,"homepage":"https://hackerrank.com","language":"Go","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/gophercarrot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-07-30T20:25:12.000Z","updated_at":"2024-04-11T17:07:39.000Z","dependencies_parsed_at":"2023-06-18T06:15:33.768Z","dependency_job_id":null,"html_url":"https://github.com/gophercarrot/carrot","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/gophercarrot%2Fcarrot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gophercarrot%2Fcarrot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gophercarrot%2Fcarrot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gophercarrot%2Fcarrot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gophercarrot","download_url":"https://codeload.github.com/gophercarrot/carrot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213955956,"owners_count":15662547,"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":["go","golang","load-testing","stress-testing","websockets"],"created_at":"2024-08-04T20:01:06.299Z","updated_at":"2024-08-04T20:02:27.093Z","avatar_url":"https://github.com/gophercarrot.png","language":"Go","readme":"# Carrot\nDistributed WebSocket and HTTP Load Testing Framework in Go\n\n### Highly Concurrent Load Testing Framework\n\n## Setup\nProperly setup $GOPATH\n\n## Fetch Dependencies\n\n```\ngo get github.com/gorilla/websocket\ngo get github.com/wcharczuk/go-chart\n```\n\n## Fetch Carrot\n\n```\ngo get -v github.com/gophercarrot/carrot\n```\n\n## Running\n\nGo to $GOPATH/go/src/github.com/gophercarrot/carrot and run\n\n```\ngo run cmd/main.go\n```\n\n## Config at Run time\n```\ngo run main.go -host=example.com -protocol=wss -htime=40 -request=5000 -wtime=1 -htime=30 -path=/somepath\n\nwtime -\u003e number of seconds to wait before writing to websockets\nhtime -\u003e number of milliseconds to wait before creating new websocket connection\n```\n\n## Parameters in main.go\n```\t\ncurrentTest := \u0026carrot.Base{\"example.com\", \"wss\", 1000, msg, 2, 30}\n\nwss -\u003e protocol use 'ws' for localhost\n1000 -\u003e number of requests\nmsg -\u003e payload to send\n2 -\u003e number of seconds to wait before writing to websockets\n30 -\u003e number of milliseconds to wait before creating new websocket connection\n```\n\n### After stats you should see screenshot which can be looked at http://localhost:8900/latency\n\n![ScreenShot](https://github.com/interviewstreet/Carrot/blob/master/latency.png)\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgophercarrot%2Fcarrot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgophercarrot%2Fcarrot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgophercarrot%2Fcarrot/lists"}