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.
- Host: GitHub
- URL: https://github.com/bartolomej/server-comparison
- Owner: bartolomej
- Created: 2020-03-22T08:25:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-22T13:34:19.000Z (about 6 years ago)
- Last Synced: 2025-04-08T23:20:38.155Z (about 1 year ago)
- Topics: backend-server, golang, java, kotlin, nodejs, performance-testing, python
- Language: Java
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 `.