forked from clojure/clojurescript
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use appropriate quoting to avoid whitespace within arguments, environment variables from being string-split. - Better compatibility with baseline POSIX sh. - Improve editor syntax highlighter compatibility. - Readability cleanups (avoid workarounds for bugs fixed pre-POSIX-standardization).
- Loading branch information
1 parent
60139a3
commit 5c8e1d4
Showing
8 changed files
with
40 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,28 +1,30 @@ | |||
#!/bin/sh | |||
|
|||
rm -rf out | rm -rf out | ||
mkdir -p out | mkdir -p out | ||
|
|
||
#bin/cljsc benchmark > out/core-benchmark.js | #bin/cljsc benchmark > out/core-benchmark.js | ||
bin/cljsc benchmark {:optimizations :advanced} > out/core-advanced-benchmark.js | bin/cljsc benchmark "{:optimizations :advanced}" >out/core-advanced-benchmark.js | ||
|
|
||
if [ "$V8_HOME" == "" ]; then | if [ "$V8_HOME" = "" ]; then | ||
echo "V8_HOME not set, skipping V8 benchmarks" | echo "V8_HOME not set, skipping V8 benchmarks" | ||
else | else | ||
echo "Benchmarking with V8" | echo "Benchmarking with V8" | ||
${V8_HOME}/d8 out/core-advanced-benchmark.js | "${V8_HOME}/d8" out/core-advanced-benchmark.js | ||
# TODO: figure out path problem when not in advanced mode | # TODO: figure out path problem when not in advanced mode | ||
# ${V8_HOME}/d8 out/core-benchmark.js | # "${V8_HOME}/d8" out/core-benchmark.js | ||
fi | fi | ||
|
|
||
if [ "$SPIDERMONKEY_HOME" == "" ]; then | if [ "$SPIDERMONKEY_HOME" = "" ]; then | ||
echo "SPIDERMONKEY_HOME not set, skipping SpiderMonkey benchmarks" | echo "SPIDERMONKEY_HOME not set, skipping SpiderMonkey benchmarks" | ||
else | else | ||
echo "Benchmarking with SpiderMonkey" | echo "Benchmarking with SpiderMonkey" | ||
${SPIDERMONKEY_HOME}/js -m -n -a -f out/core-advanced-benchmark.js | "${SPIDERMONKEY_HOME}/js" -m -n -a -f out/core-advanced-benchmark.js | ||
fi | fi | ||
|
|
||
if [ "$JSC_HOME" == "" ]; then | if [ "$JSC_HOME" = "" ]; then | ||
echo "JSC_HOME not set, skipping JavaScriptCore benchmarks" | echo "JSC_HOME not set, skipping JavaScriptCore benchmarks" | ||
else | else | ||
echo "Benchmarking with JavaScriptCore" | echo "Benchmarking with JavaScriptCore" | ||
${JSC_HOME}/jsc -f out/core-advanced-benchmark.js | "${JSC_HOME}/jsc" -f out/core-advanced-benchmark.js | ||
fi | fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters