Coder Social home page Coder Social logo

go-web-random's Introduction

go-web-random

responds a random word from the words package

pre-requisites

install the words package to provide /usr/share/dict/words

run the service

go run main.go

or

go install && \
$GOPATH/bin/go-web-random

run vegeta perf test

go get github.com/tsenart/vegeta
echo "GET http://localhost:8080" | vegeta attack -duration=60s -rate=1000 | vegeta report

Example output (1000rps):

Requests      [total, rate]            60000, 1000.02
Duration      [total, attack, wait]    59.999532764s, 59.998999905s, 532.859µs
Latencies     [mean, 50, 95, 99, max]  538.425µs, 496.448µs, 812.888µs, 1.550336ms, 12.102291ms
Bytes In      [total, mean]            574652, 9.58
Bytes Out     [total, mean]            0, 0.00
Success       [ratio]                  100.00%
Status Codes  [code:count]             200:60000
Error Set:

...

go-web-random's People

Contributors

alex-leonhardt avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.