MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / addWeighted

Method addWeighted

programs/benchmark/Benchmark.cpp:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 Sampler sampler {1 << 16};
320
321 void addWeighted(size_t read_rows_inc, size_t read_bytes_inc, size_t result_rows_inc, size_t result_bytes_inc, double weight)
322 {
323 queries += weight;
324 read_rows += weight * static_cast<double>(read_rows_inc);
325 read_bytes += weight * static_cast<double>(read_bytes_inc);
326 result_rows += weight * static_cast<double>(result_rows_inc);
327 result_bytes += weight * static_cast<double>(result_bytes_inc);
328 }
329
330 void sample(double duration)
331 {

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected