Skip to content

Commit 467a63d

Browse files
kbayescopybara-github
authored andcommitted
Add BoxBox to ccd benchmarks.
PiperOrigin-RevId: 738761460 Change-Id: If59d306748d64e9e30abe65daa746a4f8e9ec78c
1 parent 1f1d528 commit 467a63d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/benchmark/ccd_benchmark_test.cc

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ static const int kBatchSize = 50;
3535

3636
static const char kBoxMeshPath[] =
3737
"../test/engine/testdata/collision_convex/perf/boxmesh.xml";
38+
static const char kBoxBoxPath[] =
39+
"../test/engine/testdata/collision_convex/perf/box.xml";
3840
static const char kEllipsoidPath[] =
3941
"../test/engine/testdata/collision_convex/perf/ellipsoid.xml";
4042
static const char kMixedPath[] =
@@ -113,6 +115,12 @@ void ABSL_ATTRIBUTE_NO_TAIL_CALL
113115
}
114116
BENCHMARK(BM_BoxMesh_LibCCD);
115117

118+
void ABSL_ATTRIBUTE_NO_TAIL_CALL BM_BoxBox(benchmark::State& state) {
119+
static TestHarness harness(kBoxBoxPath, "box.xml (BoxBox)");
120+
harness.RunBenchmark(state);
121+
}
122+
BENCHMARK(BM_BoxBox);
123+
116124
void ABSL_ATTRIBUTE_NO_TAIL_CALL
117125
BM_Ellipsoid_NativeCCD(benchmark::State& state) {
118126
static TestHarness harness(kEllipsoidPath, "ellipsoid.xml (nativeccd)");

0 commit comments

Comments
 (0)