Permalink
Please sign in to comment.
Showing
with
35 additions
and 0 deletions.
- +1 −0 .gitignore
- +34 −0 benchmarks/runtime.sh
| @@ -0,0 +1,34 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Usage: | ||
| # ./runtime.sh <function name> | ||
| set -o nounset | ||
| set -o pipefail | ||
| set -o errexit | ||
| # NOTE: Same list in oilshell.org/blob/run.sh. | ||
| files() { | ||
| cat <<EOF | ||
| tcc-0.9.26.tar.bz2 | ||
| yash-2.46.tar.xz | ||
| ocaml-4.06.0.tar.xz | ||
| uftrace-0.8.1.tar.gz | ||
| EOF | ||
| } | ||
| readonly TAR_DIR=_tmp/benchmarks/runtime | ||
| download() { | ||
| files | xargs -n 1 -I {} --verbose -- \ | ||
| wget --directory $TAR_DIR 'https://oilshell.org/blob/testdata/{}' | ||
| } | ||
| extract() { | ||
| time for f in $TAR_DIR/*z; do | ||
| tar -x --directory $TAR_DIR --file $f | ||
| done | ||
| ls -l $TAR_DIR | ||
| } | ||
| "$@" |
0 comments on commit
c0a87ec