2014-11-26 19:41:00 +00:00
|
|
|
# Script for collecting compilation times for the standard library
|
|
|
|
# It assumes the lean binary is at the bin directory
|
|
|
|
# It assumes the programs time and realpath are available
|
|
|
|
TIME=/usr/bin/time
|
|
|
|
REALPATH=realpath
|
|
|
|
|
2015-07-02 17:57:42 +00:00
|
|
|
if ! $TIME --format "$rf %e" ls 2> /dev/null > /dev/null; then
|
|
|
|
TIME=gtime
|
|
|
|
fi
|
|
|
|
|
2014-11-26 19:41:00 +00:00
|
|
|
MY_PATH="`dirname \"$0\"`"
|
|
|
|
LEAN=$MY_PATH/../bin/lean
|
|
|
|
LIB=$MY_PATH/../library
|
|
|
|
for f in `find $LIB -name '*.lean'`; do
|
|
|
|
rf=`$REALPATH $f`
|
|
|
|
$TIME --format="$rf %e" $LEAN $rf > /dev/null
|
|
|
|
done
|
2015-02-25 18:50:30 +00:00
|
|
|
|
|
|
|
LIB=$MY_PATH/../hott
|
|
|
|
for f in `find $LIB -name '*.hlean'`; do
|
|
|
|
rf=`$REALPATH $f`
|
|
|
|
$TIME --format="$rf %e" $LEAN $rf > /dev/null
|
|
|
|
done
|