Code Monkey home page Code Monkey logo

go-perf's Introduction

go-perf

Deploy different versions of a go application in a real environment and visualize their performance in datadog thanks to expvar metrics.

Usage

  1. Create the different versions of the app you want to test and put them into the bin folder. For example, if you're using dep, modify the constraints in the Gopkg.toml, dep ensure and then go build your app.

  2. Rename your binaries by following the naming convention APP-VERSION. For example, nicky-develop, where nicky is the name of the app and develop the name of the branch.

  3. If you have n versions to compare, provide n hosts in the hosts list. The binaries will be deployed on them.

  4. Run the script with ./main.sh.

  5. Visualize your metrics in the datadog app.

dashboard

Tips

You should only provide hosts that come from the same availibility zone for better results in the comparison. You can use the datadog hostmap to visualize the hosts running your app per availibility zone. Then inspect the page and go to network tab, click on overview? and save rows as a global variable. Then open the chrome js console and type:

hosts = temp1.filter(row => row.tags_by_source["Amazon Web Services"][0].includes("us-east-1a")).map(row => row.display_name)
hosts.forEach(h => console.log(h))

This way you'll be able to provide only the hosts for a given availibility zone.

go-perf's People

Stargazers

 avatar  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.