Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Stats Benchmarks#1834

Merged
dinooliva merged 1 commit intocensus-instrumentation:masterfrom
dinooliva:stats-benchmarks
Apr 9, 2019
Merged

Stats Benchmarks#1834
dinooliva merged 1 commit intocensus-instrumentation:masterfrom
dinooliva:stats-benchmarks

Conversation

@dinooliva
Copy link
Copy Markdown
Contributor

@dinooliva dinooliva commented Apr 4, 2019

Adds microbenchmarks for OpenCensus Stats.

@dinooliva dinooliva requested review from a team, rghetia and songy23 as code owners April 4, 2019 14:44
@dinooliva dinooliva changed the title Adds microbenchmarks for OpenCensus Stats. Stats benchmarks Apr 4, 2019
@dinooliva dinooliva changed the title Stats benchmarks Stats Benchmarks Apr 4, 2019
Copy link
Copy Markdown
Contributor

@rghetia rghetia left a comment

Choose a reason for hiding this comment

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

Overall LGTM. Couple of nits.

private static AttributeValue[] createAttributeValues(int size) {
AttributeValue[] attributeValues = new AttributeValue[size];
for (int i = 0; i < size; i++) {
attributeValues[i] = AttributeValue.stringAttributeValue(ATTRIBUTE_VALUE + "-i");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

same as before. should it be ATTRIBUTE_VALUE + "-" + i ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch - that's actually in the trace benchmarks, which seem to have appeared here with the rebase merge commit issue. I'll put together a new pr to fix the issue.

switch (attributeType) {
case "string":
for (int i = 0; i < size; i++) {
attributeValues[i] = AttributeValue.stringAttributeValue(ATTRIBUTE_VALUE_STRING + "-i");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should this be ATTRIBUTE_VALUE_STRING + "-" + i ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Similarly, this is part of the trace benchmarks, I'll put together a new pr to fix the issue.

@rghetia
Copy link
Copy Markdown
Contributor

rghetia commented Apr 5, 2019

Looks like rebase created a merge commit.

@dinooliva
Copy link
Copy Markdown
Contributor Author

Ta - thanks!

@dinooliva dinooliva merged commit e6c6aee into census-instrumentation:master Apr 9, 2019
@dinooliva dinooliva deleted the stats-benchmarks branch April 9, 2019 18:41
@songy23 songy23 mentioned this pull request Apr 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants