Added benchmarks for SealedEnvelope value passing and pointer passing
Description
BenchmarkPassSealedEnvelope/PassByValue
BenchmarkPassSealedEnvelope/PassByValue-8 397502140 3.011 ns/op 0 B/op 0 allocs/op
BenchmarkPassSealedEnvelope/PassByPointer
BenchmarkPassSealedEnvelope/PassByPointer-8 584725507 2.047 ns/op 0 B/op 0 allocs/op
actpool_test.go:1212: PassByPointer is 32% faster than PassByValue
Fixes #(issue)
Type of change
Please delete options that are not relevant.
- [] Bug fix (non-breaking change which fixes an issue)
- [] New feature (non-breaking change which adds functionality)
- [] Code refactor or improvement
- [] Breaking change (fix or feature that would cause a new or changed behavior of existing functionality)
- [] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
- [] make test
- [] fullsync
- [] Other test (please specify)
Test Configuration:
- Firmware version:
- Hardware:
- Toolchain:
- SDK:
Checklist:
- [] My code follows the style guidelines of this project
- [] I have performed a self-review of my code
- [] I have commented my code, particularly in hard-to-understand areas
- [] I have made corresponding changes to the documentation
- [] My changes generate no new warnings
- [] I have added tests that prove my fix is effective or that my feature works
- [] New and existing unit tests pass locally with my changes
- [] Any dependent changes have been merged and published in downstream modules
Quality Gate passed
Kudos, no new issues were introduced!
0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 76.19%. Comparing base (
e1f0636) to head (2ac3a46). Report is 339 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #4073 +/- ##
==========================================
+ Coverage 75.38% 76.19% +0.81%
==========================================
Files 303 338 +35
Lines 25923 28806 +2883
==========================================
+ Hits 19541 21950 +2409
- Misses 5360 5736 +376
- Partials 1022 1120 +98
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.