Skip to content

Commit

Permalink
Fix JsonExprBenchmark.cpp (facebookincubator#9574)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebookincubator#9574

Benchmark used to fail because it didn't initialize memory manager.

Reviewed By: xiaoxmeng

Differential Revision: D56452087

fbshipit-source-id: b564b457728b0efff49e2b72c3aed5aa99dedd1d
  • Loading branch information
mbasmanova authored and facebook-github-bot committed Apr 23, 2024
1 parent 63b4595 commit fb9355d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions velox/functions/prestosql/benchmarks/JsonExprBenchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ BENCHMARK_DRAW_LINE();

int main(int argc, char** argv) {
folly::Init init{&argc, &argv};

facebook::velox::memory::MemoryManager::initialize({});

folly::runBenchmarks();
return 0;
}

0 comments on commit fb9355d

Please sign in to comment.