Skip to content

How to avoid running benchmark in debug mode? #4194

Answered by zhouyuan
ViggoC asked this question in Q&A
Discussion options

You must be logged in to vote

My environment is Debian, so I install folly like in setup-ubuntu.sh.

function install_folly {
  github_checkout facebook/folly "${FB_OS_VERSION}"
  cmake_install -DBUILD_TESTS=OFF
}

you may need to manually set cmake_build_type=Release in the cmake_install function
https://github.com/facebook/folly/blob/main/folly/Benchmark.cpp#L641

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ViggoC
Comment options

@zhouyuan
Comment options

Answer selected by ViggoC
@ViggoC
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants