https://github.com/tsenart/vegeta

  1. golang 설치 및 환경변수 설정
ssh -i google_compute_engine [email protected] -- sudo apt install -y golang
ssh -i google_compute_engine [email protected] export GOPATH=$HOME/go
export PATH=$PATH:/usr/lib/go/bin:$GOPATH/bin
  1. export PATH=$PATH:$(go env GOPATH)/bin 명령은 쉘 세션에 한시적으로 PATH 환경 변수를 설정
  2. 명령을 쉘의 초기화 파일에 추가
  3. .bashrc 또는 .bash_profile (bash 쉘을 사용하는 경우), .zshrc (zsh 쉘을 사용하는 경우)

{"result":"{\"latencies\":{\"total\":886352763,\"mean\":8863527,\"50th\":8775863,\"95th\":10320671,\"99th\":11033797,\"max\":11171676},\"bytes_in\":{\"total\":1600,\"mean\":16},\"bytes_out\":{\"total\":0,\"mean\":0},\"earliest\":\"2023-05-17T11:33:39.665118736Z\",\"latest\":\"2023-05-17T11:33:41.645913946Z\",\"end\":\"2023-05-17T11:33:41.654415375Z\",\"duration\":1980795210,\"wait\":8501429,\"requests\":100,\"rate\":50.48477474862229,\"throughput\":50.26902375417928,\"success\":1,\"status_codes\":{\"200\":100},\"errors\":[]}\n"}