-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pyaisloader: Enabled ETL option for pyaisloader benchmarks
Signed-off-by: Tony Chen <[email protected]>
- Loading branch information
1 parent
779a7b9
commit 0732eb9
Showing
12 changed files
with
247 additions
and
37 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
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
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 |
---|---|---|
@@ -1,31 +1,32 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "No argument supplied. Please provide a test type: 'short' or 'long'." | ||
if [ -z "$1" ]; then | ||
echo "No argument supplied. Please provide a test type: 'short', 'long', or 'etl'." | ||
exit 1 | ||
fi | ||
|
||
# install aistore python sdk from source | ||
pip install -e . | ||
# Install aistore python SDK from source | ||
pip install -e . --quiet | ||
|
||
cd ./pyaisloader | ||
cd ./pyaisloader || exit | ||
make install | ||
|
||
export AIS_ENDPOINT="http://localhost:8080" | ||
|
||
if [ "$1" == "short" ] | ||
then | ||
if [ "$1" == "short" ]; then | ||
yes "y" | head -n 2 | pyaisloader p -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -s 1gb -w 16 | ||
yes "y" | head -n 2 | pyaisloader g -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -s 1gb -w 16 | ||
yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -w 16 -c | ||
yes "y" | head -n 2 | pyaisloader ais_dataset -b ais://testpyaisloader -d 15s -min 1mb -max 10mb -w 16 -c | ||
yes "y" | head -n 2 | pyaisloader ais_iter_dataset -b ais://testpyaisloader -i 1 -d 15s -min 1mb -max 10mb -w 16 -c | ||
elif [ "$1" == "long" ] | ||
then | ||
elif [ "$1" == "long" ]; then | ||
yes "y" | head -n 2 | pyaisloader p -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -s 10gb -w 16 | ||
yes "y" | head -n 2 | pyaisloader g -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -s 10gb -w 16 | ||
yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 3m -min 1mb -max 10mb -w 16 -c | ||
elif [ "$1" == "etl" ]; then | ||
yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 1m -min 1mb -max 10mb -w 16 --etl ECHO | ||
yes "y" | head -n 2 | pyaisloader m -b ais://testpyaisloader -d 1m -min 1mb -max 10mb -w 16 --etl MD5 -c | ||
else | ||
echo "Invalid test type: $1. Please provide a valid test type: 'short' or 'long'." | ||
echo "Invalid test type: $1. Please provide a valid test type: 'short', 'long', or 'etl'." | ||
exit 1 | ||
fi |
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
Oops, something went wrong.