An open API service indexing awesome lists of open source software.

https://github.com/bartolomej/server-comparison

A performance comparison of simple server app written in several different languages.
https://github.com/bartolomej/server-comparison

backend-server golang java kotlin nodejs performance-testing python

Last synced: 2 months ago
JSON representation

A performance comparison of simple server app written in several different languages.

Awesome Lists containing this project

README

          

# Server comparison

Performance comparison of a simple "framework-free" server application, written in
[Golang](https://golang.org/),
[Node.js](https://nodejs.org/en/),
[Python](https://www.python.org/).

Performance testing is done by a simple tool [Hey](https://github.com/rakyll/hey).
Install for MacOS via `brew install hey`.

## Running

| LANGUAGE | PORT |
|----------|:-------------:|
| Node.js | 8000 |
| Golang | 8001 |
| Python | 8002 |
| Kotlin | 8003 |

Run tests:
1. Start servers with `sh start.sh`
2. Run tests: `sh test.sh `

Example:
```bash
sh start.sh && sh test.sh /1000 10
```

If server process doesn't shut down try running `lsof -i tcp:` and `kill `.