diff --git a/README.md b/README.md index a963b41..12f7a24 100644 --- a/README.md +++ b/README.md @@ -127,11 +127,11 @@ and here is the code for the multi-threaded insert: template struct TD { - int64_t thread_idx; - int64_t num_threads; - int64_t cnt; - HT &hash; - RSU rsu; // generates a random sequence of unique integers + int64_t thread_idx; // index of this thread (0 to num_threads) + int64_t num_threads; // number of threads inserting values into the hash_map + int64_t cnt; // number of values to insert (10 million in this benchmark) + HT &hash; // the absl::parallel_flat_hash_map + RSU rsu; // generates a random sequence of unique integers }; // -------------------------------------------------------------------------- @@ -158,7 +158,7 @@ void _fill_random_inner_thr(TD td) template void _fill_random_inner_mt(int64_t cnt, HT &hash, RSU &rsu) { - constexpr int64_t num_threads = 8; // has to be a power of two + constexpr int64_t num_threads = 8; // has to be a power of two std::unique_ptr threads[num_threads]; for (int64_t i=0; i