carrot

Distributed WebSocket and HTTP Load Testing Framework in Go

Github星跟蹤圖

Carrot

Distributed WebSocket and HTTP Load Testing Framework in Go

Highly Concurrent Load Testing Framework

Setup

Properly setup $GOPATH

Fetch Dependencies

go get github.com/gorilla/websocket
go get github.com/wcharczuk/go-chart

Fetch Carrot

go get -v github.com/gophercarrot/carrot

Running

Go to $GOPATH/go/src/github.com/gophercarrot/carrot and run

go run cmd/main.go

Config at Run time

go run main.go -host=example.com -protocol=wss -htime=40 -request=5000 -wtime=1 -htime=30 -path=/somepath

wtime -> number of seconds to wait before writing to websockets
htime -> number of milliseconds to wait before creating new websocket connection

Parameters in main.go

currentTest := &carrot.Base{"example.com", "wss", 1000, msg, 2, 30}

wss -> protocol use 'ws' for localhost
1000 -> number of requests
msg -> payload to send
2 -> number of seconds to wait before writing to websockets
30 -> number of milliseconds to wait before creating new websocket connection

After stats you should see screenshot which can be looked at http://localhost:8900/latency

ScreenShot

主要指標

概覽
名稱與所有者gophercarrot/carrot
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2017-07-30 20:25:12
推送於2018-10-15 10:39:27
最后一次提交2018-10-15 16:09:26
發布數0
用户参与
星數153
關注者數7
派生數9
提交數33
已啟用問題?
問題數2
打開的問題數1
拉請求數2
打開的拉請求數0
關閉的拉請求數0
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?