Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interesting Latency Stats (Ping-Pong) #1

Open
ProfFan opened this issue Jul 18, 2018 · 0 comments
Open

Interesting Latency Stats (Ping-Pong) #1

ProfFan opened this issue Jul 18, 2018 · 0 comments

Comments

@ProfFan
Copy link
Member

ProfFan commented Jul 18, 2018

On macOS,

Default:

Test name (ALL by default):   ?
PingPongSequencedLatencyTest
Latency Test to run => PingPongSequencedLatencyTest, Runs => 3
Starting latency tests
Run: Duration (s): 24.3, Latency: min: 4.04 us, mean: 7.02 us, max: 747 us, Q99.99: 51.8 us, Q99.9: 20.7 us, Q99: 11 us, Q98: 9.3 us, Q95: 7.64 us, Q93: 7.41 us, Q90: 7.27 us, Q50: 6.87 us
Run: Duration (s): 24.3, Latency: min: 3.74 us, mean: 7.04 us, max: 136 us, Q99.99: 54 us, Q99.9: 16.3 us, Q99: 9.98 us, Q98: 8.43 us, Q95: 7.49 us, Q93: 7.39 us, Q90: 7.3 us, Q50: 6.94 us
Run: Duration (s): 24.4, Latency: min: 472 ns, mean: 7.05 us, max: 687 us, Q99.99: 51.5 us, Q99.9: 19.8 us, Q99: 11.1 us, Q98: 9.27 us, Q95: 7.59 us, Q93: 7.4 us, Q90: 7.29 us, Q50: 6.91 us

With:

m_pingBuffer = RingBuffer< ValueEvent >::createSingleProducer(ValueEvent::eventFactory(), m_bufferSize, std::make_shared< YieldingWaitStrategy >());
        m_pongBuffer = RingBuffer< ValueEvent >::createSingleProducer(ValueEvent::eventFactory(), m_bufferSize, std::make_shared< YieldingWaitStrategy >());

We have

Test name (ALL by default):   ?
PingPongSequencedLatencyTest
Latency Test to run => PingPongSequencedLatencyTest, Runs => 3
Starting latency tests
Run: Duration (s): 5.66, Latency: min: 202 ns, mean: 826 ns, max: 347 us, Q99.99: 16.8 us, Q99.9: 8.3 us, Q99: 1.07 us, Q98: 1.01 us, Q95: 993 ns, Q93: 987 ns, Q90: 979 ns, Q50: 929 ns
Run: Duration (s): 5.61, Latency: min: 193 ns, mean: 806 ns, max: 253 us, Q99.99: 17.5 us, Q99.9: 8.37 us, Q99: 1.09 us, Q98: 1.04 us, Q95: 1.01 us, Q93: 1 us, Q90: 995 ns, Q50: 942 ns
Run: Duration (s): 5.61, Latency: min: 198 ns, mean: 807 ns, max: 238 us, Q99.99: 17 us, Q99.9: 8.13 us, Q99: 1.08 us, Q98: 1.03 us, Q95: 1 us, Q93: 993 ns, Q90: 985 ns, Q50: 934 ns

Seriously, mean > max???????? 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant