From 74385f09a2ab63d0032784cf4933ed5e289d1f1b Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Sun, 26 May 2019 23:57:29 +0200 Subject: [PATCH] Add batch-put benchmarks --- README.md | 10 +++ benchmarks/batch-put.js | 137 +++++++++++++++++++++++++++++++++++++++ benchmarks/index.js | 2 + benchmarks/write.js | 4 ++ benchmarks/write.plot.js | 1 + 5 files changed, 154 insertions(+) create mode 100644 benchmarks/batch-put.js diff --git a/README.md b/README.md index 5192627..4f1269c 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,16 @@ Perform concurrent `put()` operations on sorted string keys. Options: - `--concurrency`: default 10 - `--valueSize`: size of value, as a number in bytes or string with unit (e.g. `--valueSize 1kb`) +### `batch-put` + +Same as `write`, but in batches rather than singular puts. Perform concurrent `batch()` operations on random string keys and values. Options: + +- `-n`: amount of operations, default 1e6 +- `--batchSize`: default 1000 +- `--chained`: boolean flag, default false, use chained batch +- `--concurrency`: default 1 +- `--valueSize`: size of value, as a number in bytes or string with unit (e.g. `--valueSize 1kb`) +