Lines Matching refs:DB_BENCH_ASSERT
40 DB_BENCH_ASSERT((keybuf = malloc(keysize)) != NULL);
41 DB_BENCH_ASSERT((databuf = malloc(datasize)) != NULL);
53 DB_BENCH_ASSERT(db_create(&dbp, NULL, 0) == 0);
57 DB_BENCH_ASSERT(dbp->set_pagesize(dbp, pagesize) == 0);
58 DB_BENCH_ASSERT(dbp->open(
67 DB_BENCH_ASSERT(
72 DB_BENCH_ASSERT(dbp->put(dbp, NULL, &key, &data, 0) == 0);
75 DB_BENCH_ASSERT(
81 DB_BENCH_ASSERT(gsp->st_cache_miss == 0);
83 DB_BENCH_ASSERT(dbp->close(dbp, 0) == 0);
99 DB_BENCH_ASSERT((keybuf = malloc(keysize)) != NULL);
100 DB_BENCH_ASSERT((databuf = malloc(bulkbufsize)) != NULL);
111 DB_BENCH_ASSERT(db_create(&dbp, NULL, 0) == 0);
115 DB_BENCH_ASSERT(dbp->set_pagesize(dbp, pagesize) == 0);
116 DB_BENCH_ASSERT(dbp->set_cachesize(dbp, 0, cachesize, 1) == 0);
117 DB_BENCH_ASSERT(
122 DB_BENCH_ASSERT(dbp->put(dbp, NULL, &key, &data, 0) == 0);
128 DB_BENCH_ASSERT (dbp->stat_print(dbp, DB_STAT_ALL) == 0);
131 DB_BENCH_ASSERT(dbp->cursor(dbp, NULL, &dbc, 0) == 0);
140 DB_BENCH_ASSERT(dbc->c_get(
153 DB_BENCH_ASSERT(gsp->st_cache_miss == 0);
158 DB_BENCH_ASSERT (dbp->stat_print(dbp, DB_STAT_ALL) == 0);
161 DB_BENCH_ASSERT(dbp->close(dbp, 0) == 0);
178 DB_BENCH_ASSERT((keybuf = malloc(keysize)) != NULL);
179 DB_BENCH_ASSERT((databuf = malloc(datasize)) != NULL);
191 DB_BENCH_ASSERT(db_env_create(&dbenv, 0) == 0);
197 DB_BENCH_ASSERT(dbenv->set_flags(dbenv, DB_AUTO_COMMIT, 1) == 0);
200 DB_BENCH_ASSERT(dbenv->set_flags(dbenv, env_flags, 1) == 0);
205 DB_BENCH_ASSERT(
208 DB_BENCH_ASSERT(dbenv->set_flags(dbenv, log_flags, 1) == 0);
216 DB_BENCH_ASSERT(dbenv->set_lg_max(dbenv, logbufsize * 10) == 0);
217 DB_BENCH_ASSERT(dbenv->set_lg_bsize(dbenv, logbufsize) == 0);
219 DB_BENCH_ASSERT(dbenv->open(dbenv, "TESTDIR",
223 DB_BENCH_ASSERT(db_create(&dbp, dbenv, 0) == 0);
224 DB_BENCH_ASSERT(dbp->set_pagesize(dbp, pagesize) == 0);
225 DB_BENCH_ASSERT(dbp->open(
233 DB_BENCH_ASSERT(
238 DB_BENCH_ASSERT(gsp->st_page_out == 0);
240 DB_BENCH_ASSERT(dbp->put(dbp, NULL, &key, &data, 0) == 0);
245 DB_BENCH_ASSERT(
247 DB_BENCH_ASSERT(
249 DB_BENCH_ASSERT(txn->commit(txn, 0) == 0);
254 DB_BENCH_ASSERT(gsp->st_cache_miss == 0);
257 DB_BENCH_ASSERT(dbp->close(dbp, 0) == 0);
258 DB_BENCH_ASSERT(dbenv->close(dbenv, 0) == 0);