Don't attempt to escape % in SparseByteSetBench
authorChristopher Dykes <cdykes@fb.com>
Thu, 11 Aug 2016 22:58:04 +0000 (15:58 -0700)
committerFacebook Github Bot 1 <facebook-github-bot-1-bot@fb.com>
Thu, 11 Aug 2016 23:08:26 +0000 (16:08 -0700)
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

folly/test/SparseByteSetBench.cpp

index 83c6edd80e61100abd81578b7ab15e63425270a9..fc1c27935d285ab52bb61072a2b31b8882d90161 100644 (file)
@@ -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<BoolArraySet>(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<SparseByteSet>(iters, size_add, size_contains);