simple script to time module compilations (#3414)

This commit is contained in:
tersec 2022-02-18 10:52:01 +00:00 committed by GitHub
parent a88427bd39
commit 8df4290dde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

4
scripts/time_module_builds.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
set -Eeo pipefail
find beacon_chain/ ncli/ research/ tests/ -type f -name '*.nim' -print0 | shuf -z | xargs -0 -I{} bash -c "rm nimcache -rf && /usr/bin/time -f%e -- ./env.sh nim c -o:/dev/null --hints:off --warnings:off -d:release {} 2>&1 | tr -d '\n' && echo '' {}"