added script to get average runtime of release

This commit is contained in:
Phuntsok Drak-pa 2018-11-27 14:56:58 +01:00
parent 1950215008
commit 5c596ea613
No known key found for this signature in database
GPG Key ID: 9CB34B6827C66D22

9
run-time.sh Executable file
View 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"