From 8ace6b0f9146bf60981efe95e8b4d426cb1aa9e0 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 28 Oct 2013 17:42:33 -0700 Subject: [PATCH] Run benchmark with no debug Summary: assert(Overlap) significantly slows down the benchmark. Ignore assertions when executing blob_store_bench. Test Plan: Ran the benchmark Reviewers: dhruba, haobo, kailiu Reviewed By: kailiu CC: leveldb Differential Revision: https://reviews.facebook.net/D13737 --- tools/blob_store_bench.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/blob_store_bench.cc b/tools/blob_store_bench.cc index 0d0751ead..6bedcb06f 100644 --- a/tools/blob_store_bench.cc +++ b/tools/blob_store_bench.cc @@ -8,6 +8,10 @@ #define KB 1024LL #define MB 1024*1024LL +// BlobStore does costly asserts to make sure it's running correctly, which +// significantly impacts benchmark runtime. +// NDEBUG will compile out those asserts. +#define NDEBUG using namespace rocksdb; using namespace std; -- GitLab