Skip to content

Commit

Permalink
Fixes because of removal of exact type. (#2459)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
  • Loading branch information
3 people committed Dec 16, 2021
1 parent 4654d78 commit 134a610
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions sdk/metric/benchmark_test.go
Expand Up @@ -230,11 +230,11 @@ func BenchmarkFloat64LastValueAdd(b *testing.B) {

// Histograms

func benchmarkInt64HistogramAdd(b *testing.B, name string) {
func BenchmarkInt64HistogramAdd(b *testing.B) {
ctx := context.Background()
fix := newFixture(b)
labs := makeLabels(1)
mea := fix.meterMust().NewInt64Histogram(name)
mea := fix.meterMust().NewInt64Histogram("int64.histogram")

b.ResetTimer()

Expand All @@ -243,11 +243,11 @@ func benchmarkInt64HistogramAdd(b *testing.B, name string) {
}
}

func benchmarkFloat64HistogramAdd(b *testing.B, name string) {
func BenchmarkFloat64HistogramAdd(b *testing.B) {
ctx := context.Background()
fix := newFixture(b)
labs := makeLabels(1)
mea := fix.meterMust().NewFloat64Histogram(name)
mea := fix.meterMust().NewFloat64Histogram("float64.histogram")

b.ResetTimer()

Expand Down Expand Up @@ -303,16 +303,6 @@ func BenchmarkGaugeObserverObservationFloat64(b *testing.B) {
fix.accumulator.Collect(ctx)
}

// Exact

func BenchmarkInt64ExactAdd(b *testing.B) {
benchmarkInt64HistogramAdd(b, "int64.exact")
}

func BenchmarkFloat64ExactAdd(b *testing.B) {
benchmarkFloat64HistogramAdd(b, "float64.exact")
}

// BatchRecord

func benchmarkBatchRecord8Labels(b *testing.B, numInst int) {
Expand Down

0 comments on commit 134a610

Please sign in to comment.