From: Christopher Dykes Date: Thu, 11 Aug 2016 22:58:04 +0000 (-0700) Subject: Don't attempt to escape % in SparseByteSetBench X-Git-Tag: v2016.08.15.00~6 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9d2c7aa0daa8235ac916bbdd7b273b967fc8f133;p=folly.git Don't attempt to escape % in SparseByteSetBench Summary: Because it doesn't need to be escaped, and MSVC will warn about invalid escape sequences. If being built with HHVM's settings for MSVC, it's actually an error, as the same warning is produced for multi-byte escape sequences in narrow strings. Reviewed By: yfeldblum Differential Revision: D3704596 fbshipit-source-id: 603e57a35f8b7433d1f6e47f4c2882244536b14f --- diff --git a/folly/test/SparseByteSetBench.cpp b/folly/test/SparseByteSetBench.cpp index 83c6edd8..fc1c2793 100644 --- a/folly/test/SparseByteSetBench.cpp +++ b/folly/test/SparseByteSetBench.cpp @@ -127,7 +127,7 @@ void setup_rand_bench() { }); addBenchmark( __FILE__, - sformat("\%bool_array_set_rand_bench({}, {})", + sformat("%bool_array_set_rand_bench({}, {})", size_add, size_contains).c_str(), [=](int iters) { rand_bench(iters, size_add, size_contains); @@ -135,7 +135,7 @@ void setup_rand_bench() { }); addBenchmark( __FILE__, - sformat("\%sparse_byte_set_rand_bench({}, {})", + sformat("%sparse_byte_set_rand_bench({}, {})", size_add, size_contains).c_str(), [=](int iters) { rand_bench(iters, size_add, size_contains);