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

Use StepCounter instead of BasicCounter #42

Merged
merged 1 commit into from
Oct 22, 2014
Merged

Use StepCounter instead of BasicCounter #42

merged 1 commit into from
Oct 22, 2014

Conversation

brharrington
Copy link
Contributor

StepCounter has more overhead, but the
normalization and sampling of BasicCounter
can lead to rate variations when aggregating
across many counters. Example of from
counters that should all be the same:

atlas_2014_22_10_15_42_01_951.log.gz

1.618458 ReciprocalRank
1.545702 Rank
1.672844 RankFraction
1.763815 BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_42_57_012.log.gz

1.284395 ReciprocalRank
1.248162 Rank
1.248178 RankFraction
1.356733 BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_43_52_066.log.gz

2.111525 ReciprocalRank
1.856574 Rank
1.983977 RankFraction
2.220634 BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_44_47_197.log.gz

1.832837 ReciprocalRank
1.742114 Rank
1.760254 RankFraction
1.941755 BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_45_42_452.log.gz

2.210017 ReciprocalRank
2.064924 Rank
2.264092 RankFraction
2.336758 BinaryDiscountedCumulativeGain

StepCounter has more overhead, but the
normalization and sampling of BasicCounter
can lead to rate variations when aggregating
across many counters. Example of from
counters that should all be the same:

atlas_2014_22_10_15_42_01_951.log.gz

  1.618458   ReciprocalRank
  1.545702   Rank
  1.672844   RankFraction
  1.763815   BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_42_57_012.log.gz

  1.284395   ReciprocalRank
  1.248162   Rank
  1.248178   RankFraction
  1.356733   BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_43_52_066.log.gz

  2.111525   ReciprocalRank
  1.856574   Rank
  1.983977   RankFraction
  2.220634   BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_44_47_197.log.gz

  1.832837   ReciprocalRank
  1.742114   Rank
  1.760254   RankFraction
  1.941755   BinaryDiscountedCumulativeGain

atlas_2014_22_10_15_45_42_452.log.gz

  2.210017   ReciprocalRank
  2.064924   Rank
  2.264092   RankFraction
  2.336758   BinaryDiscountedCumulativeGain
@brharrington brharrington added this to the 1.0-RC1 milestone Oct 22, 2014
brharrington added a commit that referenced this pull request Oct 22, 2014
Use StepCounter instead of BasicCounter
@brharrington brharrington merged commit bb7f4c7 into Netflix:master Oct 22, 2014
@brharrington
Copy link
Contributor Author

Example of difference, first part is with BasicCounter second part is with StepCounter:

sample_graph

@brharrington brharrington deleted the servo-step-counter branch October 22, 2014 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant