Summary: Makes a fair comparison between asox queue and notification queue. THe updated benchmark is just noise in this diff, notificationqueue isn't fast enough (yet) to make a difference.
Test Plan:
fbconfig common/concurrency; fbmake opt
./common/concurrency/QueueBenchmark.sh
Reviewed By: afrind@fb.com
FB internal diff:
D1272859
return queue_->size();
}
+void EventBase::setMaxReadAtOnce(uint32_t maxAtOnce) {
+ fnRunner_->setMaxReadAtOnce(maxAtOnce);
+}
+
// Set smoothing coefficient for loop load average; input is # of milliseconds
// for exp(-1) decay.
void EventBase::setLoadAvgMsec(uint32_t ms) {
int getNotificationQueueSize() const;
+ void setMaxReadAtOnce(uint32_t maxAtOnce);
+
/**
* Verify that current thread is the EventBase thread, if the EventBase is
* running.