-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
25 lines (25 loc) · 1.19 KB
/
test.sh
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
#!/usr/bin/env bash
./build/native/nativeCompile/whiskers-graalvm > logs & echo $! > pid.file
test=$(<pid.file)
date +%s | xargs -I {} echo "graalvm,"{} > ../result-no-container-graalvm.csv
test=$(<pid.file)
string=$(<logs)
while [[ "$string" != *"Started application"* ]]
do
string=$(<logs)
sleep 0.01
done
date +%s | xargs -I {} echo "graalvm,"{} >> ../result-no-container-graalvm.csv
ps -p "$test" -o rss | tail -n 1 | xargs -I {} echo "graalvm,"{} >> ../result-no-container-graalvm.csv
echo -e "\033[92mStarting process $test\033[0m"
date +%s | xargs -I {} echo "graalvm,"{} > ../result-test-no-container-graalvm.csv
make perform-tests
date +%s | xargs -I {} echo "graalvm,"{} >> ../result-test-no-container-graalvm.csv
date +%s | xargs -I {} echo "graalvm-encoded,"{} >> ../result-test-no-container-graalvm.csv
make perform-tests-encoded
date +%s | xargs -I {} echo "graalvm-encoded,"{} >> ../result-test-no-container-graalvm.csv
date +%s | xargs -I {} echo "graalvm-encoded,"{} >> ../result-test-no-container-graalvm.csv
make perform-tests-encoded
date +%s | xargs -I {} echo "graalvm-encoded,"{} >> ../result-test-no-container-graalvm.csv
kill "$test"
echo -e "\033[92mProcess $test has ended!\033[0m"