git clone https://github.com/gfantonib/push_swap_battery_tester.git
cd push_swap_battery_tester
cd battery
python3 main.py
-
Specify the repositories you want in the race with only one space between them:
Exemple:
https://github.com/mcombeau/push_swap.git https://github.com/LeoFu9487/push_swap.git https://github.com/ayogun/push_swap.git -
Assign a name to each repository respectively:
Exemple:
mia_combeau leo_fu yigit_ogun -
Determine the sets, i.e., the number of elements you want the program to execute. Each set will be filled with random numbers:
Exemple:
3 5 100 500 -
Specify how many times the program runs for each set of numbers.
This indicates how many times ./push_swap {...} is going to be executed for each set.
The average time and movements will be calculated:
Exemple:
10
If you want to use exactly the same inputs and compare the results between the chosen repositories, use the battery_2.