https://github.com/jponge/time-to-boot-server
Measure the time to boot a server and make a first connection
https://github.com/jponge/time-to-boot-server
Last synced: 4 months ago
JSON representation
Measure the time to boot a server and make a first connection
- Host: GitHub
- URL: https://github.com/jponge/time-to-boot-server
- Owner: jponge
- License: mit
- Created: 2017-08-21T14:40:49.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-21T14:40:59.000Z (over 8 years ago)
- Last Synced: 2024-10-20T22:24:40.388Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `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](LICENSE)