Limit maximum number of iterations in folly::Benchmark with bm_max_iters
authorYinghai Lu <yinghai@fb.com>
Sat, 8 Oct 2016 01:38:14 +0000 (18:38 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Sat, 8 Oct 2016 01:53:35 +0000 (18:53 -0700)
commit0a3dae9df47573a99950499c67099bc41fe4d13a
treeb6522d14d29b265d7f38503c02b2b397a7afc2be
parent2acfd4d04ad694e6413a5e54bc5991da6ff6a8ac
Limit maximum number of iterations in folly::Benchmark with bm_max_iters

Summary:
We are using `bm_max_iters` in folly and other part of the code in fbcode but it didn't really exist in Benchmark.cpp. For example: https://github.com/facebook/folly/blob/master/folly/test/function_benchmark/main.cpp#L29

This patch adds back this functionality.

This diff depends on D3990600.

Reviewed By: yfeldblum

Differential Revision: D3989499

fbshipit-source-id: d2303b2bebb196e84a592d54a72af68171971491
folly/Benchmark.cpp