Add more complex perf test for the mapbuffer

Summary:
Benchmarks performance/correctness of mapbuffer with several different types of data

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D33608299

fbshipit-source-id: 81b1e195aecac60ad1cc3ca416d1cf7b09feab32
This commit is contained in:
Andrei Shikov
2022-01-16 23:07:40 -08:00
committed by Facebook GitHub Bot
parent ea712f825a
commit 0b48ef7ca8
2 changed files with 2 additions and 2 deletions
@@ -148,7 +148,7 @@ void MapBufferBuilder::putString(Key key, std::string const &value) {
dynamicDataOffset_ += sizeOfDynamicData;
}
void MapBufferBuilder::putMapBuffer(Key key, MapBuffer &map) {
void MapBufferBuilder::putMapBuffer(Key key, MapBuffer const &map) {
int32_t mapBufferSize = map.getBufferSize();
// format [lenght of buffer (int)] + [bytes of MapBuffer]
@@ -84,7 +84,7 @@ class MapBufferBuilder {
void putString(Key key, std::string const &value);
void putMapBuffer(Key key, MapBuffer &map);
void putMapBuffer(Key key, MapBuffer const &map);
// TODO T83483191: This should return MapBuffer!
MapBuffer build();