aboutsummaryrefslogtreecommitdiff
path: root/src/zen/zen.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-16 21:33:15 +0200
committerGitHub <[email protected]>2023-05-16 21:33:15 +0200
commit43af8814456f337b3a98a1dbda1c6dbe123293a2 (patch)
treee8d9b7a5343fe2ed8b1af8d0add8a6c62a81b4f9 /src/zen/zen.cpp
parentimplemented subtree copying (diff)
downloadarchived-zen-43af8814456f337b3a98a1dbda1c6dbe123293a2.tar.xz
archived-zen-43af8814456f337b3a98a1dbda1c6dbe123293a2.zip
added benchmark utility command `bench` (#298)
currently this implements a way (`zen bench --purge`) to purge the standby lists on Windows. This basically flushes the file system cache and is useful to put your system in a consistent state before running benchmarks
Diffstat (limited to 'src/zen/zen.cpp')
-rw-r--r--src/zen/zen.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index 3cb5bec47..0df0ab834 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -5,7 +5,7 @@
#include "zen.h"
-#include "chunk/chunk.h"
+#include "cmds/bench.h"
#include "cmds/cache.h"
#include "cmds/copy.h"
#include "cmds/dedup.h"
@@ -179,6 +179,7 @@ main(int argc, char** argv)
auto _ = zen::MakeGuard([] { spdlog::shutdown(); });
+ BenchCommand BenchCmd;
CacheInfoCommand CacheInfoCmd;
CopyCommand CopyCmd;
CreateOplogCommand CreateOplogCmd;
@@ -219,6 +220,7 @@ main(int argc, char** argv)
const char* CmdSummary;
} Commands[] = {
// clang-format off
+ {"bench", &BenchCmd, "Utility command for benchmarking"},
// {"chunk", &ChunkCmd, "Perform chunking"},
{"cache-info", &CacheInfoCmd, "Info on cache, namespace or bucket"},
{"copy", &CopyCmd, "Copy file(s)"},