A shellscript to test the performance of push_swap project
This is the shell script that I wrote to test my push_swap project performance. I also use it to test other people's projects that I review. The script will output:
- avg = average performance
- best = performance from the best case
- worst = performance from the worst case
- exceed = number of cases that exceed the performance threshold
- clone/download the repo
- move the file "perf.sh" to your push_swap directory (the one that have push_swap execution file)
- modify the first 3 line of the file and save the file:
- num = input amount
- case = number of times that you want to run the test
- limit = performance threshold (it will use to count the case that have worse performance than this number)
- run the script
sh perf.sh