added script to get average runtime of release
This commit is contained in:
parent
1950215008
commit
5c596ea613
9
run-time.sh
Executable file
9
run-time.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
start=$(date +%s.%N)
|
||||||
|
nbloops=10
|
||||||
|
for i in `seq 1 $nbloops`; do
|
||||||
|
./bin/surfaces-unies -c -i ./img/asterix.ppm
|
||||||
|
done
|
||||||
|
end=$(date +%s.%N)
|
||||||
|
runtime=$(python -c "print((${end} - ${start}) / ${nbloops})")
|
||||||
|
echo "Average runtime was $runtime"
|
Loading…
Reference in New Issue
Block a user