forked from grpc/grpc-swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use atomics for counting outstanding RPCs in the QPS benchmark (grpc#…
…1298) Motivation: The QPS benchmark synchronises state (the number of outstanding RPCs and whether RPCs should continue to be made) on an `EventLoop`. This incurs unnecessary thread hops for every request. Modifications: - Use two atomics: one tracking how many RPCs are still active and another for whether we should continue making RPCs Result: Less benchmark overhead.
- Loading branch information
Showing
1 changed file
with
33 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters