feat(script): add script for collecting standard library compilation times
This commit is contained in:
parent
ea63136434
commit
126398ccb0
1 changed files with 13 additions and 0 deletions
13
script/lib_perf.sh
Executable file
13
script/lib_perf.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
# 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
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in a new issue