summaryrefslogtreecommitdiff
path: root/src/bin/benchmark-store.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-23 19:42:49 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-23 19:42:49 +0300
commit5768dd1112ef4ebc6040c50d9a64e08989dc0c6a (patch)
treef67dc43f58edb5c05b3fee65e287dd53ea5b38c8 /src/bin/benchmark-store.rs
parent7d037bdf8231f14c668cc36789ca2873ccaf3b45 (diff)
downloadobnam2-5768dd1112ef4ebc6040c50d9a64e08989dc0c6a.tar.gz
drop: benchmark programs
I think we need to re-think the way we do benchmarks. These old programs aren't useful anymore. We definitely want to run benchmarks via "cargo bench" rather than having extra binaries in the crate. Sponsored-by: author
Diffstat (limited to 'src/bin/benchmark-store.rs')
-rw-r--r--src/bin/benchmark-store.rs28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/bin/benchmark-store.rs b/src/bin/benchmark-store.rs
deleted file mode 100644
index da54590..0000000
--- a/src/bin/benchmark-store.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use obnam::benchmark::ChunkGenerator;
-use obnam::store::Store;
-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 store = Store::new(&opt.chunks);
- for (id, _, chunk) in gen {
- store.save(&id, &chunk)?;
- }
-
- Ok(())
-}