forked from talaia-labs/rust-teos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eaf5c59
commit fb1fa98
Showing
5 changed files
with
91 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
########################### | ||
printf "Press enter to start teosd-rusqlite " | ||
read | ||
~/teosd-rusqlite >/dev/null 2>/dev/null & | ||
printf "Press enter to stop teosd-rusqlite " | ||
read | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
printf "Press enter to start teosd-1lite " | ||
read | ||
~/teosd-1lite --databaseurl "sqlite:///home/mario/sqlx.db?mode=rwc" >/dev/null 2>/dev/null & | ||
printf "Press enter to stop teosd-1lite " | ||
read | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
printf "Press enter to start teosd-sqlx " | ||
read | ||
~/teosd-sqlx --databaseurl "sqlite:///home/mario/sqlx.db?mode=rwc" >/dev/null 2>/dev/null & | ||
printf "Press enter to stop teosd-sqlx " | ||
read | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
printf "Press enter to start teosd-gres " | ||
read | ||
~/teosd-gres --databaseurl "postgres://user:pass@localhost/teos" >/dev/null 2>/dev/null & | ||
printf "Press enter to stop teosd-gres " | ||
read | ||
teos-cli stop | ||
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
cd $(dirname $0) | ||
users=$1 | ||
appointments=$2 | ||
|
||
# cargo build --target x86_64-unknown-linux-musl --release --bin stress | ||
# cp ../target/x86_64-unknown-linux-musl/release/stress . | ||
|
||
cargo build --release --bin stress | ||
cp ../target/release/stress . | ||
|
||
|
||
########################### | ||
~/teosd-rusqlite >/dev/null 2>/dev/null & | ||
echo "rusqlite sync driver:" | ||
sleep 1 | ||
./stress $users $appointments | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
~/teosd-1lite --databaseurl "sqlite:///home/mario/sqlx.db?mode=rwc" >/dev/null 2>/dev/null & | ||
echo "Sqlx sqlite pool of 1 connection:" | ||
sleep 1 | ||
./stress $users $appointments | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
~/teosd-sqlx --databaseurl "sqlite:///home/mario/sqlx.db?mode=rwc" >/dev/null 2>/dev/null & | ||
echo "Sqlx sqlite pool of 20 connections:" | ||
sleep 1 | ||
./stress $users $appointments | ||
teos-cli stop | ||
sleep 1 | ||
|
||
|
||
########################### | ||
~/teosd-gres --databaseurl "postgres://user:pass@localhost/teos" >/dev/null 2>/dev/null & | ||
echo "Sqlx postgresql:" | ||
sleep 1 | ||
./stress $users $appointments | ||
teos-cli stop | ||
sleep 1 |