Permalink
Please sign in to comment.
Browse files
Fix the bin/opypy-osh entry point, and add a demo.
scripts/opy.sh opypy-demo
- Loading branch information...
Showing
with
23 additions
and 3 deletions.
- +1 −2 bin/opypy-osh
- +4 −1 opy/opy_main.py
- +18 −0 scripts/opy.sh
| @@ -0,0 +1,18 @@ | ||
| #!/bin/bash | ||
| # | ||
| # Usage: | ||
| # ./opy.sh <function name> | ||
| set -o nounset | ||
| set -o pipefail | ||
| set -o errexit | ||
| # Show the difference between OSH running under CPython and OSH running under | ||
| # byterun. | ||
| opypy-demo() { | ||
| local prog='for i in $(seq 10); do echo $i; done' | ||
| time bin/osh -c "$prog" | ||
| time bin/opypy-osh -c "$prog" | ||
| } | ||
| "$@" |
0 comments on commit
94749be