Permalink
Browse files

Support arcdiff.

Summary:
Task ID: #

Blame Rev:

Test Plan: Revert Plan:

Differential Revision: https://reviews.facebook.net/D3105
  • Loading branch information...
Dhruba Borthakur authored and dhruba committed May 10, 2012
1 parent 85584d4 commit cc6c32535aec596036c56fe742a39182539f76fa
Showing with 11 additions and 3 deletions.
  1. +6 −0 .arcconfig
  2. +5 −3 db/db_bench.cc
View
@@ -0,0 +1,6 @@
{
"project_id" : "leveldb",
"conduit_uri" : "https://reviews.facebook.net/",
"copyright_holder" : ""
}
View
@@ -85,7 +85,7 @@ static int FLAGS_write_buffer_size = 0;
// Number of bytes to use as a cache of uncompressed data.
// Negative means use default settings.
static int FLAGS_cache_size = -1;
static long FLAGS_cache_size = -1;
// Maximum number of files to keep open at the same time (use default if == 0)
static int FLAGS_open_files = 0;
@@ -252,10 +252,12 @@ class Stats {
extra = rate;
}
AppendWithSpace(&extra, message_);
double throughput = (double)done_/seconds_;
fprintf(stdout, "%-12s : %11.3f micros/op;%s%s\n",
fprintf(stdout, "%-12s : %11.3f micros/op %ld ops/sec;%s%s\n",
name.ToString().c_str(),
seconds_ * 1e6 / done_,
(long)throughput,
(extra.empty() ? "" : " "),
extra.c_str());
if (FLAGS_histogram) {
@@ -950,7 +952,7 @@ int main(int argc, char** argv) {
FLAGS_value_size = n;
} else if (sscanf(argv[i], "--write_buffer_size=%d%c", &n, &junk) == 1) {
FLAGS_write_buffer_size = n;
} else if (sscanf(argv[i], "--cache_size=%d%c", &n, &junk) == 1) {
} else if (sscanf(argv[i], "--cache_size=%ld%c", &n, &junk) == 1) {
FLAGS_cache_size = n;
} else if (sscanf(argv[i], "--bloom_bits=%d%c", &n, &junk) == 1) {
FLAGS_bloom_bits = n;

0 comments on commit cc6c325

Please sign in to comment.