https://github.com/adbayb/benchmark-programming-languages
📈 Runtime performance benchmarks of different languages
https://github.com/adbayb/benchmark-programming-languages
benchmark languages performance
Last synced: 3 months ago
JSON representation
📈 Runtime performance benchmarks of different languages
- Host: GitHub
- URL: https://github.com/adbayb/benchmark-programming-languages
- Owner: adbayb
- License: mit
- Created: 2022-02-21T21:53:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T20:10:18.000Z (over 1 year ago)
- Last Synced: 2025-01-05T05:42:03.268Z (5 months ago)
- Topics: benchmark, languages, performance
- Language: Dockerfile
- Homepage:
- Size: 15.8 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🚀 Language benchmarks
Runtime performance benchmarks of different languages
## 💪 Motivation
This repository aims to compare runtime performance of different languages (C, Go, JavaScript, Rust and Zig) over time through several cases (such as bubble sort algorithm, file IO, loop)...
To be fair enough, the implementations try to be as close/similar as possible between languages.Contributions are welcomed ✌️.
## 🚀 Quickstart
To run the benchmark cases **locally**, Docker can be used to simplify the execution flow:
Build the image:
```bash
docker build . --file Dockerfile --tag adbayb/language-benchmarks:latest
```Run the image:
```bash
docker run adbayb/language-benchmarks:latest
```_If you don't have Docker, benchmark suite can still be run via `make all` command in the repository root. For this, please make sure to have all [necessary binaries installed locally](Dockerfile)._
## 🔢 Results
Each benchmark result is saved inside the corresponding case folder. For example, for the bubble sort algorithm:
- The general result outcome is available in the [bubble-sort/README.md](bubble-sort/README.md) file
- All detailed measurements can be checked in the [bubble-sort/RESULTS.json](bubble-sort/RESULTS.json) file