https://github.com/kkpagaev/crystal-benchmark
A simple benchmark to compare the performance of Crystal, Go, Ruby, Node and Python
https://github.com/kkpagaev/crystal-benchmark
crystal go node python ruby
Last synced: about 1 year ago
JSON representation
A simple benchmark to compare the performance of Crystal, Go, Ruby, Node and Python
- Host: GitHub
- URL: https://github.com/kkpagaev/crystal-benchmark
- Owner: kkpagaev
- License: mit
- Created: 2023-05-08T23:08:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-12T18:13:53.000Z (almost 3 years ago)
- Last Synced: 2025-01-15T07:30:15.389Z (about 1 year ago)
- Topics: crystal, go, node, python, ruby
- Language: HTML
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Benchmarking languages
A simple benchmark to compare the performance of Crystal, Go, Ruby, Node and Python.
All the tests were run on a EC2 t2.micro instance using Docker. The benchmark tool is Apache Benchmark.
The test is a simple http server that computes all fibonacchi numbers to 80 and renders html page.
Results are in [results](results) file.
Full log is in [full_log](full_log) file.
Commands used to build and run the containers are below.
## Crystal
```bash
docker build -t kkpagaev/bench-cry:latest crystal
```
```bash
docker run --rm -d -p 3002:3002 -t kkpagaev/bench-cry:latest
```
## Go
```bash
docker build -t kkpagaev/bench-go:latest go
```
```bash
docker run --rm -d -p 3001:3001 -t kkpagaev/bench-go:latest
```
## Ruby
```bash
docker build --no-cache -t kkpagaev/bench-rb:latest ruby
```
```bash
docker run --rm -d -p 3003:3003 -t kkpagaev/bench-rb:latest
```
## Node
```bash
docker build -t kkpagaev/bench-js:latest node
```
```bash
docker run --rm -d -p 3004:3004 -t kkpagaev/bench-js:latest
```
## Python
```bash
docker build -t kkpagaev/bench-py:latest python
```
```bash
docker run --rm -d -p 3005:3005 -t kkpagaev/bench-py:latest
```
# License
This project is licensed under the terms of the [MIT license](https://opensource.org/license/mit/).