Search unpadded strings in Range benchmarks
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 23 Sep 2015 05:22:20 +0000 (22:22 -0700)
committerfacebook-github-bot-9 <folly-bot@fb.com>
Wed, 23 Sep 2015 06:20:16 +0000 (23:20 -0700)
commit606fa0b6dd06630eb3a26e1571a494a3df151711
tree504df99585cba92c461c56c10b025193f6450056
parent178d3b45f745e50fa70c735703bfe7c4dba9ace5
Search unpadded strings in Range benchmarks

Summary: [Folly] Search unpadded strings in `Range` benchmarks.

`vstr` has padding to adjust alignment. `vstrp` is a view into `vstr` that skips the padding, so that searches start out unaligned.

Before this diff, haystack is 8-byte aligned: `uintptr_t(haystack.begin()) % 8 == 0`. After this diff, it is not.

Reviewed By: @​@​nbronson

Differential Revision: D2468934
folly/test/RangeFindBenchmark.cpp