This project aims to compare the performance of different programming languages in executing a prime number finder algorithm up to 100,000. It provides implementations of the algorithm in various languages for a fun speed comparison. The code is customizable enough that it allows you to add new languages with ease and change the expected output and the arguments used for running building and compiling them so it doesen't have to be all about prime numbers. The language configurations are in app/Languages/Config.json. You can visialize the data regarding compilation times, executable sizes and running times on a web page running on port 8080. Just build the docker container and have fun!
- Implementation of a prime number finder algorithm in multiple programming languages.
- Docker containerization for easy replication across devices.
- Customizable language configurations via
Config.jsonfile. - Ability to add more languages and customize build and run commands.
- Flask server serving a webpage on
localhost:8080for viewing compilation data and results.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run the Docker container using the provided Dockerfile.
- Access the webpage served by the Flask server on
localhost:8080. - View compilation data and compare results using bar charts.
- Modify
Config.jsoninside thelanguagesfolder to add new languages or customize build and run commands. - Customize arguments and verify output against expected output.
Contributions are welcome! Feel free to fork the repository, make changes, and submit pull requests.
