-
Notifications
You must be signed in to change notification settings - Fork 506
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
Predefine Vector Capacity for LogRecord Attributes #1908
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1908 +/- ##
=====================================
Coverage 75.0% 75.0%
=====================================
Files 122 122
Lines 20285 20289 +4
=====================================
+ Hits 15218 15221 +3
- Misses 5067 5068 +1 ☔ View full report in Codecov by Sentry. |
@@ -10,7 +10,7 @@ | |||
| noop_layer_disabled | 12 ns | | |||
| noop_layer_enabled | 25 ns | | |||
| ot_layer_disabled | 19 ns | | |||
| ot_layer_enabled | 371 ns | | |||
| ot_layer_enabled | 270 ns | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️ this! Could you update stress tests too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated stress. The benchmark shows improvement from 391 ns -> 305 ns. Updated that too.
Fixes #1896
Stress test
Before:
Throughput: 57,703,000 iterations/sec
Memory usage: 3.70 MB
CPU usage: 99.87512%
Virtual memory usage: 2249.05 MB
With PR:
Throughput: 70,031,600 iterations/sec
Memory usage: 3.98 MB
CPU usage: 100%
Virtual memory usage: 2249.05 MB
Please provide a brief description of the changes here.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes