Skip to content

Commit

Permalink
Update load test example generation script to use node_purejs.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosjca committed Aug 2, 2023
1 parent e0b5188 commit 96dfb54
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions tools/run_tests/performance/loadtest_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,18 @@ example_file() {
echo "cxx${suffix}"
return
fi
if [[ "${scenario#python_asyncio_}" != "${scenario}" ]]; then
echo "python_asyncio${suffix}"
if [[ "${scenario#node_purejs_}" != "${scenario}" ]]; then
echo "node_purejs${suffix}"
return
fi
if [[ "${scenario#php7_protobuf_c_}" != "${scenario}" ]]; then
echo "php7_protobuf_c${suffix}"
return
fi
if [[ "${scenario#python_asyncio_}" != "${scenario}" ]]; then
echo "python_asyncio${suffix}"
return
fi
echo "${scenario%%_*}${suffix}"
}

Expand All @@ -55,14 +59,18 @@ example_language() {
echo "c++"
return
fi
if [[ "${filename#python_asyncio_}" != "${filename}" ]]; then
echo "python_asyncio"
if [[ "${filename#node_purejs_}" != "${filename}" ]]; then
echo "node_purejs"
return
fi
if [[ "${filename#php7_protobuf_c_}" != "${filename}" ]]; then
echo "php7_protobuf_c"
return
fi
if [[ "${filename#python_asyncio_}" != "${filename}" ]]; then
echo "python_asyncio"
return
fi
echo "${filename%%_*}"
}

Expand All @@ -72,7 +80,7 @@ scenarios=(
"dotnet_protobuf_async_unary_ping_pong"
"go_generic_sync_streaming_ping_pong_secure"
"java_generic_async_streaming_ping_pong_secure"
"node_to_node_generic_async_streaming_ping_pong_secure"
"node_purejs_to_node_generic_async_streaming_ping_pong_secure"
"php7_protobuf_php_extension_to_cpp_protobuf_sync_unary_ping_pong"
"php7_protobuf_c_extension_to_cpp_protobuf_sync_unary_ping_pong"
"python_generic_sync_streaming_ping_pong"
Expand All @@ -84,7 +92,7 @@ psm_scenarios=(
"cpp_protobuf_async_unary_5000rpcs_1KB_psm"
"go_protobuf_async_unary_5000rpcs_1KB_psm"
"java_protobuf_async_unary_5000rpcs_1KB_psm"
"node_to_node_protobuf_async_unary_5000rpcs_1KB_psm"
"node_purejs_to_node_protobuf_async_unary_5000rpcs_1KB_psm"
"php7_protobuf_php_extension_to_cpp_protobuf_async_unary_5000rpcs_1KB_psm"
"php7_protobuf_c_extension_to_cpp_protobuf_async_unary_5000rpcs_1KB_psm"
"python_protobuf_async_unary_5000rpcs_1KB_psm"
Expand Down

0 comments on commit 96dfb54

Please sign in to comment.