A collection of computational benchmarks, algorithms, and performance experiments across different programming languages.
The goal of this repository is not just to say "Language X is faster than Language Y," but to demonstrate how algorithmic complexity (e.g., O(N √N) vs. O(N log log N)) often outweighs raw language speed, and to showcase the extreme differences between interpreted scripts, virtual machines, and compiled systems programming languages.
| Puzzle | Description | Languages |
|---|---|---|
| Prime Numbers | Comparing Naive Trial Division vs. Sieve of Eratosthenes. | Bash/Awk, C, Go, Java, Python, Rust |
| (More coming soon) | ... | ... |
- No Dependencies: All scripts and codes use standard libraries only.
- POSIX Compliant: Shell scripts are strictly POSIX
shto ensure they run on any Linux/macOS environment withoutbashorzshdependencies. - Max Optimization: Compiled languages use their respective maximum optimization flags (e.g.,
-O3for GCC,-Ofor Rust).
Contributions are welcome! If you want to translate a puzzle into a new language (e.g., Zig, C++, C#) or propose an entirely new computational puzzle, feel free to open a Pull Request.
Created for educational purposes to explore algorithms and compiler behaviors.