Skip to content

Commit

Permalink
simple script to time module compilations (#3414)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersec authored Feb 18, 2022
1 parent a88427b commit 8df4290
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/time_module_builds.sh
Original file line number Diff line number Diff line change
@@ -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 '' {}"

0 comments on commit 8df4290

Please sign in to comment.