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

stat: define custom #inspect #491

Merged
merged 1 commit into from
Jul 9, 2019
Merged

Conversation

kyrylo
Copy link
Contributor

@kyrylo kyrylo commented Jul 9, 2019

Hopefully fixes #488 (Increase in CPU usage when performance_stats = true)

I noticed that dumping TDigest is very slow. Here's performance payload with
TDigests:

Warming up --------------------------------------
                         1.553k i/100ms
Calculating -------------------------------------
                         15.906k (± 3.0%) i/s -     80.756k in   5.082704s

And here's the same payload but without TDigests.

Warming up --------------------------------------
                          4.443k i/100ms
Calculating -------------------------------------
                         45.498k (± 1.8%) i/s -    231.036k in   5.079495s

It makes sense to not dump TDigests because it's mostly clutter and it makes
performance much worse.

Hopefully fixes #488 (Increase in CPU usage when performance_stats = true)

I noticed that dumping TDigest is very slow. Here's performance payload with
TDigests:

```
Warming up --------------------------------------
                         1.553k i/100ms
Calculating -------------------------------------
                         15.906k (± 3.0%) i/s -     80.756k in   5.082704s
```

And here's the same payload but without TDigests.

```
Warming up --------------------------------------
                          4.443k i/100ms
Calculating -------------------------------------
                         45.498k (± 1.8%) i/s -    231.036k in   5.079495s
```

It makes sense to not dump TDigests because it's mostly clutter and it makes
performance much worse.
@kyrylo kyrylo merged commit 289fbf1 into master Jul 9, 2019
@kyrylo kyrylo deleted the faster-dumping-for-performance-stats branch July 9, 2019 17:00
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

Successfully merging this pull request may close these issues.

Increase in CPU usage when performance_stats = true
1 participant