MCPcopy Create free account
hub / github.com/apache/arrow / Update

Method Update

cpp/src/arrow/flight/flight_benchmark.cc:101–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 mutable arrow::internal::TDigest latencies;
100
101 void Update(int64_t total_batches, int64_t total_records, int64_t total_bytes) {
102 std::lock_guard<std::mutex> lock(this->mutex);
103 this->total_batches += total_batches;
104 this->total_records += total_records;
105 this->total_bytes += total_bytes;
106 }
107
108 // Invoked per batch in the test loop. Holding a lock looks not scalable.
109 // Tested with 1 ~ 8 threads, no noticeable overhead is observed.

Callers 1

DoSinglePerfRunFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected