Add BoxBox to ccd benchmarks.
PiperOrigin-RevId: 738761460 Change-Id: If59d306748d64e9e30abe65daa746a4f8e9ec78c
This commit is contained in:
committed by
Copybara-Service
parent
1f1d5287fb
commit
467a63d203
@@ -35,6 +35,8 @@ static const int kBatchSize = 50;
|
||||
|
||||
static const char kBoxMeshPath[] =
|
||||
"../test/engine/testdata/collision_convex/perf/boxmesh.xml";
|
||||
static const char kBoxBoxPath[] =
|
||||
"../test/engine/testdata/collision_convex/perf/box.xml";
|
||||
static const char kEllipsoidPath[] =
|
||||
"../test/engine/testdata/collision_convex/perf/ellipsoid.xml";
|
||||
static const char kMixedPath[] =
|
||||
@@ -113,6 +115,12 @@ void ABSL_ATTRIBUTE_NO_TAIL_CALL
|
||||
}
|
||||
BENCHMARK(BM_BoxMesh_LibCCD);
|
||||
|
||||
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_BoxBox(benchmark::State& state) {
|
||||
static TestHarness harness(kBoxBoxPath, "box.xml (BoxBox)");
|
||||
harness.RunBenchmark(state);
|
||||
}
|
||||
BENCHMARK(BM_BoxBox);
|
||||
|
||||
void ABSL_ATTRIBUTE_NO_TAIL_CALL
|
||||
BM_Ellipsoid_NativeCCD(benchmark::State& state) {
|
||||
static TestHarness harness(kEllipsoidPath, "ellipsoid.xml (nativeccd)");
|
||||
|
||||
Reference in New Issue
Block a user