-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Usability updates for lua bench testing
Add in script for running lua bench, and add configurable logging to the lua bench test. Also updates .gitignore to ignore installed lua files but not files in a 'lua/' subdirectory. Signed-off-by: Michael Maurer <[email protected]>
- Loading branch information
1 parent
84db009
commit f805c64
Showing
3 changed files
with
38 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ NuRaft*/ | |
curl*/ | ||
jsoncpp*/ | ||
ethash*/ | ||
lua*/ | ||
lua-*/ | ||
benchmark-results/ | ||
CMakeFiles/ | ||
plots/ | ||
|
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,36 @@ | ||
#!/bin/bash | ||
|
||
IP="localhost" | ||
PORT="8889" | ||
N_WALLETS=5 | ||
LOGLEVEL="WARN" | ||
|
||
function print_help() { | ||
echo "Usage: lua_bench.sh [OPTIONS]" | ||
echo "" | ||
echo "OPTIONS:" | ||
echo " --ip The IP address to use. Default is localhost." | ||
echo " --port The port number to use. Default is 8888." | ||
echo " --loglevel The log level to use. Default is WARN." | ||
echo " -h, --help Show this help message and exit." | ||
echo "" | ||
} | ||
|
||
for arg in "$@"; do | ||
if [[ "$arg" == "-h" || "$arg" == "--help" ]]; then | ||
print_help | ||
exit 0 | ||
elif [[ "$arg" == "--ip"* ]]; then | ||
IP="${arg#--ip=}" | ||
elif [[ "$arg" == "--port"* ]]; then | ||
PORT="${arg#--port=}" | ||
elif [[ "$arg" == "--loglevel"* ]]; then | ||
LOGLEVEL="${arg#--loglevel=}" | ||
fi | ||
done | ||
./build/tools/bench/parsec/lua/lua_bench --component_id=0 \ | ||
--ticket_machine0_endpoint=$IP:7777 --ticket_machine_count=1 \ | ||
--shard_count=1 --shard0_count=1 --shard00_endpoint=$IP:5556 \ | ||
--agent_count=1 --agent0_endpoint=$IP:$PORT \ | ||
--loglevel=$LOGLEVEL scripts/gen_bytecode.lua $N_WALLETS | ||
echo done |
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