Build the benchmark code for c++

90 views
Skip to first unread message

Nirvik Basak

unread,
Jan 4, 2022, 1:17:52 AM1/4/22
to FlatBuffers
Where can I find the build instructions for flatbuffer benchmark for c++?
The "benchmarks/cpp/README.txt" file is missing.

Derek Bailey

unread,
Jan 31, 2022, 9:33:09 PM1/31/22
to FlatBuffers
Just set `-DFLATBUFFERS_BUILD_BENCHMARKS=On` for cmake see: https://github.com/google/flatbuffers/blob/c3801ad37505879776fd6dd92104fb34b34ebfb4/CMakeLists.txt#L44-L46

Also check out our CI builds it (https://github.com/google/flatbuffers/blob/c3801ad37505879776fd6dd92104fb34b34ebfb4/.github/workflows/build.yml#L171-L187) since flatbuffers sets some flags that make building the benchmark dependencies complain.

Олег Мищук

unread,
Nov 15, 2023, 10:42:49 AM11/15/23
to FlatBuffers
Personally, I expected to see code there, with which I could try to reproduce the results from the page:

вторник, 1 февраля 2022 г. в 05:33:09 UTC+3, derek...@google.com:
Reply all
Reply to author
Forward
0 new messages