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

WIP: Benchmark tool #46

Closed
wants to merge 26 commits into from
Closed

Conversation

wallrj
Copy link
Member

@wallrj wallrj commented Apr 8, 2024

Experiment 2024-04-07-5

image image

wallrj added 16 commits April 7, 2024 09:31
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
Signed-off-by: Richard Wall <[email protected]>
@jetstack-bot jetstack-bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. labels Apr 8, 2024
@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from wallrj. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jetstack-bot jetstack-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 8, 2024
@wallrj wallrj requested a review from maelvls April 8, 2024 08:07
Copy link
Member Author

Choose a reason for hiding this comment

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

go.mod Outdated
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

  • https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta

    // remainingItemCount is the number of subsequent items in the list which are not included in this
    // list response. If the list request contained label or field selectors, then the number of
    // remaining items is unknown and the field will be left unset and omitted during serialization.
    // If the list is complete (either because it is not chunking or because this is the last chunk),
    // then there are no more remaining items and this field will be left unset and omitted during
    // serialization.
    // Servers older than v1.15 do not set this field.
    // The intended use of the remainingItemCount is estimating the size of a collection. Clients
    // should not rely on the remainingItemCount to be set or to be exact.

Comment on lines +47 to +49
sync.RWMutex
options
record
Copy link
Member Author

Choose a reason for hiding this comment

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

Explain the embedded record hack, or find a cleaner alternative.

}
if l.RemainingItemCount != nil {
o.CertificateCount = *l.RemainingItemCount + 1
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Explain the remainingItemCount hack or find an alternative.

../setup.sh
cmctl x benchmark > experiment.${experiment_id}.json
jq -s -r 'include "module-cm"; recordsToCSV' < experiment.${experiment_id}.json > experiment.${experiment_id}.csv
```
Copy link
Member Author

Choose a reason for hiding this comment

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

Consider a --output-format=csv flag.

Copy link
Member Author

Choose a reason for hiding this comment

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

Document the experiments.
Add hypothesis and conclusion to each.

Copy link
Member Author

Choose a reason for hiding this comment

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

Annotate the diagrams highlighting points of interest.

Copy link
Member Author

Choose a reason for hiding this comment

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

Remove this file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Consider adding these steps to a setup option of the command.

@wallrj wallrj closed this Apr 18, 2024
@wallrj wallrj deleted the benchmark-tool branch April 18, 2024 06:36
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants