This project focuses on benchmarking different looping methods for optimal performance when dealing with large arrays. It provides a web interface where users can generate random arrays with customizable parameters and compare the speed of various loop implementations for copying array elements.
- Array Generation: Users can specify the size of the array and the range of random numbers to generate.
- Looping Methods: Provides multiple looping methods for copying array elements, including traditional
for
loops and modern methods likeforEach
. - Performance Metrics: Measures and displays the time taken by each looping method to copy array elements, allowing users to compare their performance.
- HTML
- CSS
- JavaScript
- Access the web site.
- Customize the array generation parameters such as size, range, sort, repetition, and buffer values.
- Choose the looping methods you want to benchmark.
- Initiate the benchmarking process.
- View the performance metrics displayed for each looping method.
index.html
: Contains the HTML structure and form elements for user interaction.styles.css
: Defines the styles for the web interface.script.js
: Implements the functionality for array generation, looping, and performance benchmarking.
Contributions to this project are welcomed! Here's how you can contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Implement your changes or add new features.
- Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Create a new Pull Request.
This project is maintained by Kovacevic Aleksa.
This project is licensed under the MIT License - see the LICENSE.md
file for details.