From df792874721e64ffcd16264acf1510b9f04d4e5d Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Tue, 25 Jul 2023 15:00:55 -0400 Subject: Alex: updated progress bar code for benchmark --- benchmarks/alex_rq_bench.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'benchmarks') diff --git a/benchmarks/alex_rq_bench.cpp b/benchmarks/alex_rq_bench.cpp index 94f7820..00e0002 100644 --- a/benchmarks/alex_rq_bench.cpp +++ b/benchmarks/alex_rq_bench.cpp @@ -126,6 +126,8 @@ static void alex_rq_insert(Alex &alex, std::fstream &file, size_t insert_cnt, do total_time += std::chrono::duration_cast(insert_stop - insert_start).count(); } + progress_update(1.0, "inserting:"); + size_t throughput = (((double) (applied_inserts + applied_deletes) / (double) total_time) * 1e9); fprintf(stdout, "%ld\t", throughput); -- cgit v1.2.3