12 Commits (25d211d0a282d6400570624531925ff6f94f5786)

Author SHA1 Message Date
dependabot[bot] 5d17e0a89d
Upgrade deps
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan c1f126ecb4
Drop netpool object before writing to stdout
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan 771bf46e27
Enable mock-keys to be created with the bench tool
This can help us create 'fake' key/value pairs for testing purposes and
memory usage analysis.

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan 7af818f751
Allow custom host and port to be set in tdb-bench
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan 792351108d
Rollout 0.5.0
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan bfb4b920df
Bump up version and add changelog entry
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan f9932a5b97
Provide default params for queries, cons and size
Instead of forcing the user to provide values for the number of
connections, queries and the packet size, we'll default to presets
if they aren't supplied.

Also, we've switched the output from stdout to stderr to facilitate
commands like `tdb-bench --json > report.json`

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan cbebda85b0
Enable JSON output for `tdb-bench`
This commit enables JSON output for the benchmark tool.
This is an effort to support automated benchmarking, once we do have
such a facility in the future. This closes #37

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan 7232fe9189
Enable tdb-bench to read args and opts from shell
From now on, tdb-bench has to be run with
`tdb-bench -c <c> -q <q> -s <s>` instead of just using positional args.
Also, we'll keep `tdb-bench`'s version in
sync with the version of `tdb`, just like the others in the project

Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan 93a7ea79cc
Improve docs in `tdb-bench`
Signed-off-by: Sayan Nandan <nandansayan@outlook.com>
4 years ago
Sayan Nandan f2b040e578
Add testing suite
The `testsuite` crate is a library which contains testing utils.
`testsuite` re-exports tdb-derive for ease of use.
4 years ago
Sayan Nandan 913cef85e2
Move `tdb-bench` into a separate crate
Since tdb-bench no longer needs to be with cli, it was moved
4 years ago