Lines Matching refs:benchmarks
345 void serialize_benchmarks(const char* filename, const vector<benchmark_t>& benchmarks, size_t first… in serialize_benchmarks() argument
353 size_t benchmarks_vector_size = benchmarks.size(); in serialize_benchmarks()
357 fwrite(benchmarks.data(), sizeof(benchmark_t), benchmarks.size(), file); in serialize_benchmarks()
361 bool deserialize_benchmarks(const char* filename, vector<benchmark_t>& benchmarks, size_t& first_be… in deserialize_benchmarks() argument
377 benchmarks.resize(benchmarks_vector_size); in deserialize_benchmarks()
378 if (benchmarks.size() != fread(benchmarks.data(), sizeof(benchmark_t), benchmarks.size(), file)) { in deserialize_benchmarks()
386 vector<benchmark_t>& benchmarks, in try_run_some_benchmarks() argument
390 if (first_benchmark_to_run == benchmarks.size()) { in try_run_some_benchmarks()
401 float ratio_done = float(benchmark_index) / benchmarks.size(); in try_run_some_benchmarks()
405 if (benchmark_index == benchmarks.size() || in try_run_some_benchmarks()
452 serialize_benchmarks(session_filename, benchmarks, first_benchmark_to_run); in try_run_some_benchmarks()
468 << 100.0f * float(benchmark_index - first_benchmark_to_run) / benchmarks.size() in try_run_some_benchmarks()
478 if (benchmark_index == benchmarks.size()) { in try_run_some_benchmarks()
480 first_benchmark_to_run = benchmarks.size(); in try_run_some_benchmarks()
496 benchmarks[benchmark_index].run(); in try_run_some_benchmarks()
501 void run_benchmarks(vector<benchmark_t>& benchmarks) in run_benchmarks() argument
510 if (deserialized_benchmarks.size() == benchmarks.size() && in run_benchmarks()
512 first_benchmark_to_run < benchmarks.size()) in run_benchmarks()
519 benchmarks = deserialized_benchmarks; in run_benchmarks()
528 random_shuffle(benchmarks.begin(), benchmarks.end()); in run_benchmarks()
536 while (first_benchmark_to_run < benchmarks.size()) { in run_benchmarks()
540 try_run_some_benchmarks(benchmarks, in run_benchmarks()
548 sort(benchmarks.begin(), benchmarks.end()); in run_benchmarks()
552 for (auto it = benchmarks.begin(); it != benchmarks.end(); ++it) { in run_benchmarks()
562 benchmarks = best_benchmarks; in run_benchmarks()
570 vector<benchmark_t> benchmarks; in run() local
578 benchmarks.emplace_back(ksize, msize, nsize, kblock, mblock, nblock); in run()
587 run_benchmarks(benchmarks); in run()
590 for (auto it = benchmarks.begin(); it != benchmarks.end(); ++it) { in run()
601 vector<benchmark_t> benchmarks; in run() local
606 benchmarks.emplace_back(ksize, msize, nsize); in run()
612 run_benchmarks(benchmarks); in run()
615 for (auto it = benchmarks.begin(); it != benchmarks.end(); ++it) { in run()