google / google/benchmark

how do you use benchmark::RegisterBenchmark but with a fixtured benchmark that was previously defined using BENCHMARK_DEFINE_F(FixtureClass, MethodName)[BUG]

Open
#1,694 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
10.4k
Forks
1.8k
Avg merge
2d 4h
Merged PRs (30d)
8

Description

**Describe the bug**
how do you use benchmark::RegisterBenchmark but with a fixtured benchmark that was previously defined using BENCHMARK_DEFINE_F(FixtureClass, MethodName)
whenever I use the MethodName in benchmark::RegisterBenchmark I get a compilation error
**System**
Which OS, compiler, and compiler version are you using:
- OS: linux
- Compiler and version: gcc 9.4

**To reproduce**
Steps to reproduce the behavior:
1. define fixture benchmark using : BENCHMARK_DEFINE_F(FixtureClass, MethodName)
2. use the MethodName in benchmark::RegisterBenchmark

**Expected behavior**
No compilation error
it gives me : undefined reference error to MethodName

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.