Skip to content

Commit

Permalink
add testing programs
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdroychan committed Mar 28, 2023
1 parent 4e7c6ff commit 46c501a
Show file tree
Hide file tree
Showing 3 changed files with 647 additions and 4 deletions.
8 changes: 4 additions & 4 deletions c/dbcdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ latency_add(struct vctr * const vctr, const u64 dt)

// (parallel) load; nr <= nr_kvs
static void
kvmap_batch_set_par(const struct forker_worker_info * const info,
kvmap_batch_put_par(const struct forker_worker_info * const info,
const struct priv * const priv, const u64 nr)
{
const struct kvmap_api * const api = info->passdata[0];
Expand All @@ -95,7 +95,7 @@ kvmap_batch_set_par(const struct forker_worker_info * const info,
}

static void
kvmap_batch_set(const struct forker_worker_info * const info,
kvmap_batch_put(const struct forker_worker_info * const info,
const struct priv * const priv, const u64 nr)
{
const struct kvmap_api * const api = info->passdata[0];
Expand Down Expand Up @@ -229,8 +229,8 @@ kvmap_worker(void * const ptr)
switch (op) {
case 'p': batch_func = kvmap_batch_pro; break;
case 'g': batch_func = kvmap_batch_get; break;
case 's': batch_func = kvmap_batch_set; break;
case 'S': batch_func = kvmap_batch_set_par; break;
case 's': batch_func = kvmap_batch_put; break;
case 'S': batch_func = kvmap_batch_put_par; break;
case 'd': batch_func = kvmap_batch_del; break;
case 'n': batch_func = kvmap_batch_seek_next; break;
case 'k': batch_func = kvmap_batch_seek_skip; break;
Expand Down
Loading

0 comments on commit 46c501a

Please sign in to comment.