Skip to content

Commit f7ba440

Browse files
committed
Add scripts
1 parent c6eabdb commit f7ba440

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -e
2+
3+
out="$PROG_HOME/tests/implicit_cache-out"
4+
mkdir -p "$out"
5+
6+
compile -d "$out" "$PROG_HOME/dotty/tests/bench/implicit_cache.scala"
7+
8+
measure -from-tasty "$out/Test.tasty" "$out/A.tasty" "$out/Foo.tasty"

bench/scripts/implicitNums-from-tasty

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -e
2+
3+
out="$PROG_HOME/tests/implicitNums-out"
4+
mkdir -p "$out"
5+
6+
compile -d "$out" "$PROG_HOME/dotty/tests/bench/implicitNums.scala"
7+
8+
measure -from-tasty "$out/Test.tasty"

bench/scripts/power-macro-1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
mkdir -p "$PROG_HOME/tests/power-macro/out"
4+
5+
compile -d "$PROG_HOME/tests/power-macro/out" "$PROG_HOME/dotty/tests/bench/power-macro/PowerMacro.scala"
6+
7+
measure "$PROG_HOME/dotty/tests/bench/power-macro/PowerInlined-1.scala" -classpath "$PROG_HOME/tests/power-macro/out"

bench/scripts/power-macro-1k

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
mkdir -p "$PROG_HOME/tests/power-macro/out"
4+
5+
compile -d "$PROG_HOME/tests/power-macro/out" "$PROG_HOME/dotty/tests/bench/power-macro/PowerMacro.scala"
6+
7+
measure "$PROG_HOME/dotty/tests/bench/power-macro/PowerInlined-1k.scala" -classpath "$PROG_HOME/tests/power-macro/out"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
mkdir -p "$PROG_HOME/tests/string-interpolation-macro/out"
4+
5+
compile -d "$PROG_HOME/tests/string-interpolation-macro/out" "$PROG_HOME/dotty/tests/bench/string-interpolation-macro/Macro.scala"
6+
7+
measure "$PROG_HOME/dotty/tests/bench/string-interpolation-macro/Test.scala" -classpath "$PROG_HOME/tests/string-interpolation-macro/out"

bench/scripts/scalap

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
set -e
2+
3+
path=$(cs fetch -p org.scala-lang:scala-compiler:2.13.0)
4+
5+
measure -source 3.0-migration -classpath "$path" $(find $PROG_HOME/dotty/community-build/community-projects/scalap/src/scalap -name "*.scala")

bench/scripts/stdlib213

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set -e
2+
3+
pattern="! -name AnyVal.scala ! -name language.scala -name *.scala -o -name *.java"
4+
stdlib213=$(find $PROG_HOME/dotty/community-build/community-projects/stdLib213/src/library/scala $pattern)
5+
cd $PROG_HOME/dotty
6+
measure -language:implicitConversions $stdlib213
7+

0 commit comments

Comments
 (0)