diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-06-07 10:35:50 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-06-07 10:35:50 -0400 |
| commit | 5645cc13b84e2500b4c4d1f337df3b124c6b5845 (patch) | |
| tree | 143b384ed5f3b032689ed099ea122c61b7ea5412 /benchmarks | |
| parent | aa5832f5e1bf7fcbd0a9507677a650b5e749ef46 (diff) | |
| download | dynamic-extension-5645cc13b84e2500b4c4d1f337df3b124c6b5845.tar.gz | |
Benchmark updates (disabled sampling temporarily)
Diffstat (limited to 'benchmarks')
| -rw-r--r-- | benchmarks/bench.h | 4 | ||||
| -rw-r--r-- | benchmarks/sampling_tput.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/bench.h b/benchmarks/bench.h index 8af244a..458dc49 100644 --- a/benchmarks/bench.h +++ b/benchmarks/bench.h @@ -163,13 +163,13 @@ static bool warmup(std::fstream *file, ExtendedWSS *extended_wss, size_t count, inserted++; extended_wss->insert(rec); - if (i > extended_wss->get_buffer_capacity() && delete_idx >= delbuf.size()) { + if (delete_prop > 0 && i > extended_wss->get_buffer_capacity() && delete_idx >= delbuf.size()) { extended_wss->query(&parms); delete_idx = 0; deleted_keys.clear(); } - if (i > extended_wss->get_buffer_capacity() && gsl_rng_uniform(g_rng) < delete_prop) { + if (delete_prop > 0 && i > extended_wss->get_buffer_capacity() && gsl_rng_uniform(g_rng) < delete_prop) { auto rec = delbuf[delete_idx]; delete_idx++; diff --git a/benchmarks/sampling_tput.cpp b/benchmarks/sampling_tput.cpp index 3eb72dc..3d38d6a 100644 --- a/benchmarks/sampling_tput.cpp +++ b/benchmarks/sampling_tput.cpp @@ -73,7 +73,7 @@ static bool insert_benchmark(ExtendedWSS *tree, std::fstream *file, progress_update(1.0, "inserting:"); size_t throughput = (((double) (applied_inserts + applied_deletes) / (double) total_time) * 1e9); - fprintf(stdout, "%ld\t", throughput); + fprintf(stdout, "\n%ld\n", throughput); reset_de_perf_metrics(); return continue_benchmark; @@ -147,7 +147,7 @@ int main(int argc, char **argv) size_t insert_cnt = record_count - warmup_cnt; insert_benchmark(&sampling_lsm, &datafile, insert_cnt, delete_prop); - sample_benchmark(&sampling_lsm, 1000, 10000); +// sample_benchmark(&sampling_lsm, 1000, 10000); delete_bench_env(); fflush(stdout); |