summaryrefslogtreecommitdiff
path: root/src/bin/benchmark-indexedstore.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/benchmark-indexedstore.rs')
-rw-r--r--src/bin/benchmark-indexedstore.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/bin/benchmark-indexedstore.rs b/src/bin/benchmark-indexedstore.rs
deleted file mode 100644
index 3ee4c38..0000000
--- a/src/bin/benchmark-indexedstore.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use obnam::benchmark::ChunkGenerator;
-use obnam::indexedstore::IndexedStore;
-use std::path::PathBuf;
-use structopt::StructOpt;
-
-#[derive(Debug, StructOpt)]
-#[structopt(name = "benchmark-store", about = "Benhcmark the store without HTTP")]
-struct Opt {
- #[structopt(parse(from_os_str))]
- chunks: PathBuf,
-
- #[structopt()]
- num: u32,
-}
-
-fn main() -> anyhow::Result<()> {
- pretty_env_logger::init();
-
- let opt = Opt::from_args();
- let gen = ChunkGenerator::new(opt.num);
-
- let mut store = IndexedStore::new(&opt.chunks)?;
- for (_, _, meta, chunk) in gen {
- store.save(&meta, &chunk)?;
- }
-
- Ok(())
-}