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

Support Optional Units on secnetperf Arguments #4015

Merged
merged 7 commits into from
Jan 9, 2024

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Dec 17, 2023

Description

Now instead of doing:

secnetperf -target:localhost -up:10000 -timed:1

You do:

secnetperf -target:localhost -up:10s

It supports both length/size units (gb, ms, kb, b) and time units (m, s, ms, us).

Testing

Tested locally. CI/CD

Documentation

Updated help text.

@nibanks nibanks requested a review from a team as a code owner December 17, 2023 15:07
Copy link

codecov bot commented Dec 17, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9416cd6) 86.95% compared to head (403d93c) 86.89%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4015      +/-   ##
==========================================
- Coverage   86.95%   86.89%   -0.06%     
==========================================
  Files          56       56              
  Lines       16938    16938              
==========================================
- Hits        14728    14718      -10     
- Misses       2210     2220      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maolson-msft
Copy link
Member

I suggest "GB" rather than "gb" since both bytes and bits are used in our field

@nibanks
Copy link
Member Author

nibanks commented Dec 17, 2023

I suggest "GB" rather than "gb" since both bytes and bits are used in our field

It's generally all case insensitive.

//" -inline:<0/1> Create new streams on callbacks. (def:0)\n"
" -rconn:<0/1> Repeat the scenario at the connection level. (def:0)\n"
" -rstream:<0/1> Repeat the scenario at the stream level. (def:0)\n"
" -runtime:<####> The total runtime (in ms). Only relevant for repeat scenarios. (def:0)\n"
" -runtime:<####>[unit] The total runtime, with an optional unit (def unit is us). Only relevant for repeat scenarios. (def:0)\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default is us, really? that seems... overly precise.

anrossi
anrossi previously approved these changes Jan 8, 2024
@nibanks nibanks merged commit 5949785 into main Jan 9, 2024
350 of 357 checks passed
@nibanks nibanks deleted the nibanks/secnetperf-units branch January 9, 2024 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants