-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbench.sh
More file actions
29 lines (15 loc) · 707 Bytes
/
bench.sh
File metadata and controls
29 lines (15 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# make all
echo "Adding from 1 to 1000000"
./target/release/sahl "samples/addition.sahl" -c
hyperfine "python3 samples/addition.py" "./target/release/sahl samples/addition.sahl -e" "./sahl exe.bin"
echo "Appending 0 to 1000000 to a list"
./target/release/sahl "samples/append.sahl" -c
hyperfine "python3 samples/append.py" "./sahl exe.bin"
echo "Fibonacci"
./target/release/sahl "samples/fibonacci.sahl" -c
hyperfine "python3 samples/fibonacci.py" "./sahl exe.bin"
echo "Factorial of 20"
./target/release/sahl "samples/factorial.sahl" -c
hyperfine "python3 samples/factorial.py" "./sahl exe.bin"
echo "Channels"
hyperfine "yaegi samples/chan.go" "./target/release/sahl "samples/chan.sahl" -e"