Skip to content

Commit

Permalink
chore: add script for running slo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
polRk committed Oct 21, 2024
1 parent 13b2077 commit 93d04b9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/slo/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
export GOOS=darwin
export GOARCH=arm64
export CGO_ENABLED=0

.bin/xorm_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb
.bin/xorm_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -read-rps 100 -write-rps 10 -time 60
.bin/xorm_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb

sleep 10

.bin/database_sql_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb
.bin/database_sql_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60
.bin/database_sql_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb

sleep 10

.bin/gorm_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb
.bin/gorm_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60
.bin/gorm_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb

sleep 10

.bin/native_table_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb
.bin/native_table_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60
.bin/native_table_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb

sleep 10

.bin/native_query_${GOOS}_${GOARCH} create grpc://localhost:2135 /Root/testdb
.bin/native_query_${GOOS}_${GOARCH} run grpc://localhost:2135 /Root/testdb -prom-pgw localhost:9091 -report-period 500 -time 60
.bin/native_query_${GOOS}_${GOARCH} cleanup grpc://localhost:2135 /Root/testdb

0 comments on commit 93d04b9

Please sign in to comment.