summaryrefslogtreecommitdiff
path: root/src/mango/test/01-index-crud-test.py
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@gmail.com>2023-05-12 18:25:29 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2023-05-13 18:25:36 -0400
commitdcf57c710c52b0a55c596f65f07b85855130f66f (patch)
tree7db5ba772779d8b9b62e208004dc506d4407bd83 /src/mango/test/01-index-crud-test.py
parenta58684f4209b3673e60b79ce3531fff116a9dce9 (diff)
downloadcouchdb-dcf57c710c52b0a55c596f65f07b85855130f66f.tar.gz
Add a simple fabric benchmark
This is mostly a diagnostic tool in the spirit of couch_debug. It creates a database, fills it with some docs, and then tries to read them. It computes rough expected rates for doc operations: how many docs per second it could insert, read, get via _all_docs, etc. When the test is done, it deletes the database. If it crashes, it also deletes the database. If someone brutally kills it, the subsequent runs will still find old databases and delete them. To run a benchmark: ``` fabric_bench:go(). ``` Pass parameters as a map: ``` fabric_bench:go(#{doc_size=>large, docs=>25000}). ``` To get available options: ``` fabric_bench:opts() ```
Diffstat (limited to 'src/mango/test/01-index-crud-test.py')
0 files changed, 0 insertions, 0 deletions