Fix some issues with Node benchmark scripts

pull/15175/head
murgatroid99 7 years ago
parent 5f3aa5ca0b
commit fbf3bd460b
  1. 5
      tools/run_tests/performance/build_performance.sh
  2. 2
      tools/run_tests/performance/build_performance_node.sh
  3. 4
      tools/run_tests/performance/run_worker_node.sh
  4. 15
      tools/run_tests/performance/scenario_config.py

@ -55,10 +55,11 @@ do
"csharp")
python tools/run_tests/run_tests.py -l "$language" -c "$CONFIG" --build_only -j 8 --compiler coreclr
;;
"node"|"node_purejs")
tools/run_tests/performance/build_performance_node.sh
;;
*)
python tools/run_tests/run_tests.py -l "$language" -c "$CONFIG" --build_only -j 8
;;
"node")
tools/run_tests/performance/build_performance_node.sh
esac
done

@ -15,6 +15,8 @@
set +ex
. "$HOME/.nvm/nvm.sh"
nvm install 9
set -ex

@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
. "$HOME/.nvm/nvm.sh"
nvm use 9
set -ex
@ -27,4 +29,4 @@ cd "$(dirname "$0")/../../.."
# Enter the grpc-node repo root (expected to be next to grpc repo root)
cd ../grpc-node
node -r "test/fixtures/$fixture.js" tools/run_tests/performance/worker.js "$@"
node -r "./test/fixtures/$fixture" test/performance/worker.js "$@"

@ -1160,7 +1160,8 @@ class NodeLanguage:
def worker_cmdline(self):
fixture = 'native_js' if self.node_purejs else 'native_native'
return ['tools/run_tests/performance/run_worker_node.sh', fixture]
return ['tools/run_tests/performance/run_worker_node.sh', fixture,
'--benchmark_impl=grpc']
def worker_port_offset(self):
if self.node_purejs:
@ -1175,7 +1176,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_generic_async_streaming_ping_pong_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='STREAMING',
client_type='ASYNC_CLIENT',
server_type='ASYNC_GENERIC_SERVER',
@ -1187,7 +1188,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_protobuf_async_streaming_ping_pong_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='STREAMING',
client_type='ASYNC_CLIENT',
server_type='ASYNC_SERVER',
@ -1197,7 +1198,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_protobuf_async_unary_ping_pong_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='UNARY',
client_type='ASYNC_CLIENT',
server_type='ASYNC_SERVER',
@ -1208,7 +1209,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_protobuf_async_unary_qps_unconstrained_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='UNARY',
client_type='ASYNC_CLIENT',
server_type='ASYNC_SERVER',
@ -1219,7 +1220,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_protobuf_async_streaming_qps_unconstrained_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='STREAMING',
client_type='ASYNC_CLIENT',
server_type='ASYNC_SERVER',
@ -1230,7 +1231,7 @@ class NodeLanguage:
yield _ping_pong_scenario(
'%s_to_node_generic_async_streaming_qps_unconstrained_%s' %
(secstr, node_implementation),
(node_implementation, secstr),
rpc_type='STREAMING',
client_type='ASYNC_CLIENT',
server_type='ASYNC_GENERIC_SERVER',

Loading…
Cancel
Save