grpc_full_performance_release.sh 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/env bash
  2. # Copyright 2017 gRPC authors.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. set -ex
  16. # Enter the gRPC repo root
  17. cd $(dirname $0)/../../..
  18. source tools/internal_ci/helper_scripts/prepare_build_linux_perf_multilang_rc
  19. # run 8core client vs 8core server
  20. tools/run_tests/run_performance_tests.py \
  21. -l c++ csharp ruby java python python_asyncio go php7 php7_protobuf_c \
  22. --netperf \
  23. --category scalable \
  24. --remote_worker_host grpc-kokoro-performance-server-8core grpc-kokoro-performance-client-8core grpc-kokoro-performance-client2-8core \
  25. -u kbuilder \
  26. --bq_result_table performance_released.performance_experiment \
  27. --xml_report run_performance_tests/8core/sponge_log.xml \
  28. || EXIT_CODE=1
  29. # prevent pushing leftover build files to remote hosts in the next step.
  30. git clean -fdxq -e reports -e run_performance_tests
  31. # scalability with 32cores (and upload to a different BQ table)
  32. tools/run_tests/run_performance_tests.py \
  33. -l c++ java csharp go \
  34. --netperf \
  35. --category scalable \
  36. --remote_worker_host grpc-kokoro-performance-server-32core grpc-kokoro-performance-client-32core grpc-kokoro-performance-client2-32core \
  37. -u kbuilder \
  38. --bq_result_table performance_released.performance_experiment_32core \
  39. --xml_report run_performance_tests/32core/sponge_log.xml \
  40. || EXIT_CODE=1
  41. # prevent pushing leftover build files to remote hosts in the next step.
  42. git clean -fdxq -e reports -e run_performance_tests
  43. exit $EXIT_CODE