-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-benchmarks.sh
executable file
·54 lines (44 loc) · 1008 Bytes
/
run-benchmarks.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
set -e
echo "begin run-benchmarks.sh"
export OUTPUT_FILE=results/latest.md
echo "OUTPUT_FILE=$OUTPUT_FILE"
# build go
cd go-api
echo "$(date) before go build"
go build
echo "$(date) after go build"
cd -
echo "pwd = $(pwd)"
# run go benchmarks
export API_COMMAND='./go-api/go-api'
export TEST_NAME=go
./run-api-benchmark.sh
# build rust
echo "rustup update"
rustup update
cd rust-api
echo "$(date) before cargo build"
cargo build --release
echo "$(date) after cargo build"
cd -
echo "pwd = $(pwd)"
# run rust benchmarks
export API_COMMAND='./rust-api/target/release/rust-api'
export TEST_NAME=rust
./run-api-benchmark.sh
# build kotlin
cd kotlin-api
echo "$(date) before kotlin-api gradle build"
./gradlew clean build
echo "killall java"
killall java
cd -
echo "$(date) after gradle build"
echo "pwd = $(pwd)"
# run kotlin benchmarks
export API_COMMAND='java -jar ./kotlin-api/build/libs/kotlin-api.jar'
export TEST_NAME=kotlin
./run-api-benchmark.sh
# commit results
./commit-results.sh