diff --git a/.arcconfig b/.arcconfig new file mode 100644 index 000000000..6d4b05398 --- /dev/null +++ b/.arcconfig @@ -0,0 +1,6 @@ +{ + "project_id" : "leveldb", + "conduit_uri" : "https://reviews.facebook.net/", + "copyright_holder" : "" +} + diff --git a/db/db_bench.cc b/db/db_bench.cc index b0c399541..5e71f81ab 100644 --- a/db/db_bench.cc +++ b/db/db_bench.cc @@ -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;