/benchmark-programming-languages

📈 Runtime performance benchmarks of different languages

Primary LanguageDockerfileMIT LicenseMIT


🚀 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:

docker build . --file Dockerfile --tag adbayb/language-benchmarks:latest

Run the image:

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.


🔢 Results

Each benchmark result is saved inside the corresponding case folder. For example, for the bubble sort algorithm: