21 lines
675 B
Fish
21 lines
675 B
Fish
|
#!/usr/bin/env fish
|
||
|
|
||
|
# This script was written to work with the fish shell. If you do not have the
|
||
|
# fish shell installed on your system, please install it before executing this
|
||
|
# script.
|
||
|
# The results will be stored in the output file `results.txt`
|
||
|
|
||
|
set nb_amelioration 10 50 100 200 500 1000
|
||
|
set nb_execution 200 100 50 20 10 5
|
||
|
set available_methods 1 2 3
|
||
|
set output results.txt
|
||
|
|
||
|
rm -f $output
|
||
|
|
||
|
for method in $available_methods
|
||
|
for i in (seq (count $nb_execution))
|
||
|
perf stat -r $nb_execution[$i] -B ./build/bin/genetic-image -i ./img/mahakala-monochrome.jpg -n $nb_amelioration[$i] -m $method ^| grep -iE "counter|elapsed" >> $output
|
||
|
echo "" >> $output
|
||
|
end
|
||
|
end
|