You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/drake-master/geometry/benchmarking
王京 14fe3d1429
中期检验所用代码以及文档
2 years ago
..
BUILD.bazel 中期检验所用代码以及文档 2 years ago
README.md 中期检验所用代码以及文档 2 years ago
mesh_intersection_benchmark.cc 中期检验所用代码以及文档 2 years ago
render_benchmark.cc 中期检验所用代码以及文档 2 years ago
render_benchmark_doxygen.h 中期检验所用代码以及文档 2 years ago

README.md

This directory contains examples of using google-benchmark to benchmark functions.

Benchmark infrastructure

TODO(jwnimmer-tri) Port this directory to the //tools/performance wrappers.

Arguments

One routine can be used to run a family of benchmarks by passing in a range of arguments through the benchmarking state. In the render_benchmark.cc example, arguments are used to vary the number of spheres rendered, the number of cameras in the scene, and the image dimensions. For more info see: https://github.com/google/benchmark#passing-arguments

Time Units

By default google-benchmark outputs times in nanoseconds. In the render_benchmark.cc example it is manually set to milliseconds. For more info see: https://github.com/google/benchmark#setting-the-time-unit.

Fixtures

Fixtures can be used in a similar fashion to gtest. In the render_benchmark.cc example it is used for common render set up. For more info see: https://github.com/google/benchmark#fixtures.

Available Benchmarks

  • render_benchmark.cc: Benchmark program to help characterize the relative costs of different RenderEngine implementations with varying scene complexity and rendering. It is designed so users can assess the relative cost of the renderers on their own hardware configuration, aiding in design decisions for understanding the cost of renderer choice.
  • mesh_intersection_benchmark.cc: Benchmark program to evaluate bounding volume hierarchy impact on mesh-mesh intersections across varying mesh attributes and overlaps. It is targeted toward developers during the process of optimizing the performance of hydroelastic contact and may be removed once sufficient work has been done in that effort.