Home
last modified time | relevance | path

Searched refs:BM_CHECK (Results 1 – 14 of 14) sorted by relevance

/third_party/benchmark/src/
Dcheck.h81 #define BM_CHECK(b) \ macro
86 #define BM_CHECK(b) ::benchmark::internal::GetNullLogInstance() macro
91 #define BM_CHECK_EQ(a, b) BM_CHECK((a) == (b))
92 #define BM_CHECK_NE(a, b) BM_CHECK((a) != (b))
93 #define BM_CHECK_GE(a, b) BM_CHECK((a) >= (b))
94 #define BM_CHECK_LE(a, b) BM_CHECK((a) <= (b))
95 #define BM_CHECK_GT(a, b) BM_CHECK((a) > (b))
96 #define BM_CHECK_LT(a, b) BM_CHECK((a) < (b))
98 #define BM_CHECK_FLOAT_EQ(a, b, eps) BM_CHECK(std::fabs((a) - (b)) < (eps))
99 #define BM_CHECK_FLOAT_NE(a, b, eps) BM_CHECK(std::fabs((a) - (b)) >= (eps))
[all …]
Dbenchmark_register.cc117 BM_CHECK(ErrStream); in FindBenchmarks()
238 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == 1); in Arg()
250 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == 1); in Range()
262 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(ranges.size())); in Ranges()
276 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(arglists.size())); in ArgsProduct()
303 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == 1); in ArgName()
309 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(names.size())); in ArgNames()
315 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == 1); in DenseRange()
324 BM_CHECK(ArgsCnt() == -1 || ArgsCnt() == static_cast<int>(args.size())); in Args()
335 BM_CHECK(setup != nullptr); in Setup()
[all …]
Dthread_timer.h31 BM_CHECK(running_); in StopTimer()
47 BM_CHECK(!running_); in real_time_used()
53 BM_CHECK(!running_); in cpu_time_used()
59 BM_CHECK(!running_); in manual_time_used()
Dbenchmark.cc178 BM_CHECK(max_iterations != 0) << "At least one iteration must be run"; in State()
233 BM_CHECK(started_ && !finished_ && !skipped()); in PauseTiming()
238 BM_CHECK(false) << "Perf counters read the value failed."; in PauseTiming()
251 BM_CHECK(started_ && !finished_ && !skipped()); in ResumeTiming()
294 BM_CHECK(!started_ && !finished_); in StartKeepRunning()
302 BM_CHECK(started_ && (!finished_ || skipped())); in FinishKeepRunning()
350 BM_CHECK(display_reporter != nullptr); in RunBenchmarks()
Dbenchmark_runner.cc133 BM_CHECK(st.skipped() || st.iterations() >= st.max_iterations) in RunInThread()
164 BM_CHECK(iters_or_time.tag == BenchTimeType::ITERS); in ComputeIters()
187 BM_CHECK(errno == 0 && p_end != nullptr && *p_end == 'x') in ParseBenchMinTime()
209 BM_CHECK(errno == 0 && p_end != nullptr && in ParseBenchMinTime()
253 BM_CHECK(FLAGS_benchmark_perf_counters.empty() || in BenchmarkRunner()
Dcolorprint.cc97 BM_CHECK(ret >= 0); in FormatString()
109 BM_CHECK(ret > 0 && (static_cast<size_t>(ret)) < size); in FormatString()
Dtimers.cc247 BM_CHECK(tz_len == kTzOffsetLen); in LocalDateTimeString()
264 BM_CHECK(timestamp_len == kTimestampLen); in LocalDateTimeString()
Dreporter.cc36 BM_CHECK(out) << "cannot be null"; in PrintBasicContext()
Dcsv_reporter.cc93 BM_CHECK(user_counter_names_.find(cnt.first) != in ReportRuns()
/third_party/benchmark/test/
Doutput_test_helper.cc101 BM_CHECK(remaining_output.good()); in CheckCase()
108 BM_CHECK(!NC.regex->Match(line)) in CheckCase()
115 BM_CHECK(TC.match_rule != MR_Next) in CheckCase()
121 BM_CHECK(remaining_output.eof() == false) in CheckCase()
151 BM_CHECK(first || new_ret == last_ret) in ReportContext()
234 BM_CHECK(output.good()); in CheckResults()
268 BM_CHECK(!field_names.empty()); in SetValues_()
285 BM_CHECK(curr > 0); in SplitCsv_()
316 BM_CHECK(!ss.fail()); in NumThreads()
323 BM_CHECK(which == kCpuTime || which == kRealTime); in GetTime()
[all …]
Dskip_with_error_test.cc36 BM_CHECK(name == run.benchmark_name()) in CheckRun()
40 BM_CHECK(error_message == run.skip_message); in CheckRun()
44 BM_CHECK(run.iterations != 0); in CheckRun()
Dregister_benchmark_test.cc33 BM_CHECK(name == run.benchmark_name()) << "expected " << name << " got " in CheckRun()
36 BM_CHECK(run.report_label == label) << "expected " << label << " got " in CheckRun()
39 BM_CHECK(run.report_label.empty()); in CheckRun()
Doutput_test.h144 BM_CHECK(sv != nullptr && !sv->empty()); in GetAs()
149 BM_CHECK(!ss.fail()); in GetAs()
Dperf_counters_gtest.cc220 auto work = [&]() { BM_CHECK(do_work() > 1000); }; in measure()