From: Christopher Dykes Date: Tue, 6 Dec 2016 18:51:35 +0000 (-0800) Subject: Make bm_min_iters a 32-bit flag X-Git-Tag: v2016.12.12.00~20 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=75d32465ae116a58e5da27f597604956e6e28a89;p=folly.git Make bm_min_iters a 32-bit flag Summary: The benchmark API only supports `unsigned int` as the iteration number, so this being 64-bit means it has to be truncated for no reason. This change gets us closer to being able to enable MSVC's implicit truncation warnings. Reviewed By: yfeldblum Differential Revision: D4281264 fbshipit-source-id: 27397e3f23bace20f3cc457665ea6f21bf994da5 --- diff --git a/folly/Benchmark.cpp b/folly/Benchmark.cpp index b09faf2e..060c4bf4 100644 --- a/folly/Benchmark.cpp +++ b/folly/Benchmark.cpp @@ -45,7 +45,7 @@ DEFINE_int64( 100, "Minimum # of microseconds we'll accept for each benchmark."); -DEFINE_int64( +DEFINE_int32( bm_min_iters, 1, "Minimum # of iterations we'll try for each benchmark.");