Giter Site home page Giter Site logo

time-to-boot-server's Introduction

time-to-boot-server ~ Measure the time to boot a server and make a first connection

This is a simple tool to measure how long it takes for a server application to boot and succeed in receiving a first network request.

Usage

You can run it as in:

time-to-boot-server --target http://localhost:8080/ --executable python -- -m SimpleHTTPServer 8080

Run with --help to get a list of all arguments.

There are 2 connection modes:

  • http-get: succeeds on the first HTTP GET request with a 200 status code, and consumes all the body
  • tcp-connect: succeeds on the first established TCP connection, and does not consuje anything.

tcp-connect is the fastest time to connect to the server, but for any framework with lazy initialization some components may only be initialized upon the first request so http-get is more accurate in general.

Building and running

This is a Go program so...

go get github.com/jponge/time-to-boot-server

If you don't know how to build Go code:

mkdir ~/Code/go-workspace
export GOPATH=~/Code/go-workspace
export PATH=$GOPATH/bin:$PATH

go get github.com/jponge/time-to-boot-server

License

MIT, see LICENSE

time-to-boot-server's People

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.