bm_constants.py 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env python3
  2. #
  3. # Copyright 2017 gRPC authors.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. """ Configurable constants for the bm_*.py family """
  17. _AVAILABLE_BENCHMARK_TESTS = [
  18. 'bm_fullstack_unary_ping_pong',
  19. 'bm_fullstack_streaming_ping_pong',
  20. 'bm_fullstack_streaming_pump',
  21. 'bm_closure',
  22. 'bm_cq',
  23. 'bm_call_create',
  24. 'bm_chttp2_hpack',
  25. 'bm_chttp2_transport',
  26. 'bm_pollset',
  27. ]
  28. _INTERESTING = ('cpu_time', 'real_time', 'locks_per_iteration',
  29. 'allocs_per_iteration', 'writes_per_iteration',
  30. 'atm_cas_per_iteration', 'atm_add_per_iteration',
  31. 'nows_per_iteration', 'cli_transport_stalls_per_iteration',
  32. 'cli_stream_stalls_per_iteration',
  33. 'svr_transport_stalls_per_iteration',
  34. 'svr_stream_stalls_per_iteration',
  35. 'http2_pings_sent_per_iteration')