Skip to content

Instantly share code, notes, and snippets.

@MadVikingGod
Created December 15, 2021 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MadVikingGod/f7f1eb41aa83be4729481f7c10415be5 to your computer and use it in GitHub Desktop.
Save MadVikingGod/f7f1eb41aa83be4729481f7c10415be5 to your computer and use it in GitHub Desktop.
Record of panic of benchmarks
/workspaces/opentelemetry-go/sdk/metric (main ✗) $ go test --bench .
goos: linux
goarch: amd64
pkg: go.opentelemetry.io/otel/sdk/metric
cpu: Intel(R) Xeon(R) Platinum 8168 CPU @ 2.70GHz
BenchmarkInt64CounterAddWithLabels_1-4 3396212 379.0 ns/op 176 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_2-4 2476251 494.8 ns/op 240 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_4-4 1693987 723.8 ns/op 368 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_8-4 933027 1286 ns/op 624 B/op 2 allocs/op
BenchmarkInt64CounterAddWithLabels_16-4 399891 2921 ns/op 2160 B/op 3 allocs/op
BenchmarkIterator_0-4 206972055 5.515 ns/op
BenchmarkIterator_1-4 28982833 34.67 ns/op
BenchmarkIterator_2-4 19383578 64.72 ns/op
BenchmarkIterator_4-4 9918636 119.6 ns/op
BenchmarkIterator_8-4 4703600 237.9 ns/op
BenchmarkIterator_16-4 2595716 484.4 ns/op
BenchmarkGlobalInt64CounterAddWithSDK-4 3245209 358.7 ns/op 176 B/op 2 allocs/op
BenchmarkInt64CounterAdd-4 2992551 366.9 ns/op 176 B/op 2 allocs/op
BenchmarkFloat64CounterAdd-4 3293202 363.4 ns/op 176 B/op 2 allocs/op
BenchmarkInt64LastValueAdd-4 2509639 464.5 ns/op 208 B/op 3 allocs/op
BenchmarkFloat64LastValueAdd-4 2570397 488.7 ns/op 208 B/op 3 allocs/op
BenchmarkObserverRegistration-4 1000000 1307 ns/op 544 B/op 3 allocs/op
BenchmarkGaugeObserverObservationInt64-4 1774608 564.6 ns/op 136 B/op 4 allocs/op
BenchmarkGaugeObserverObservationFloat64-4 2305522 542.7 ns/op 136 B/op 4 allocs/op
BenchmarkInt64ExactAdd-4 panic: Invalid instrument name for test AggregatorSelector: int64.exact
goroutine 1080 [running]:
go.opentelemetry.io/otel/sdk/metric/processor/processortest.testAggregatorSelector.AggregatorFor({}, 0xc000090088, {0xc000484000, 0x2, 0xc000484000})
/workspaces/opentelemetry-go/sdk/metric/processor/processortest/test.go:204 +0x43d
go.opentelemetry.io/otel/sdk/metric.(*syncInstrument).acquireHandle(0xc000090080, {0xc000090000, 0x1, 0x1}, 0x0)
/workspaces/opentelemetry-go/sdk/metric/sdk.go:249 +0x285
go.opentelemetry.io/otel/sdk/metric.(*syncInstrument).RecordOne(0xc000050e28, {0x6567b0, 0xc0000bc000}, 0x4c4f94, {0xc000090000, 0x1, 0x0})
/workspaces/opentelemetry-go/sdk/metric/sdk.go:283 +0x50
go.opentelemetry.io/otel/metric.syncInstrument.directRecord(...)
/workspaces/opentelemetry-go/metric/metric_instrument.go:287
go.opentelemetry.io/otel/metric.Int64Histogram.Record({{{0x6560f8, 0xc000090080}}}, {0x6567b0, 0xc0000bc000}, 0x0, {0xc000090000, 0xc00003e6b8, 0xc00003e6c8})
/workspaces/opentelemetry-go/metric/metric_instrument.go:463 +0x48
go.opentelemetry.io/otel/sdk/metric_test.benchmarkInt64HistogramAdd(0xc0001b4240, {0x60ac98, 0xb})
/workspaces/opentelemetry-go/sdk/metric/benchmark_test.go:242 +0x20a
go.opentelemetry.io/otel/sdk/metric_test.BenchmarkInt64ExactAdd(0xc0001b4240)
/workspaces/opentelemetry-go/sdk/metric/benchmark_test.go:309 +0x25
testing.(*B).runN(0xc0001b4240, 0x1)
/usr/local/go/src/testing/benchmark.go:192 +0x126
testing.(*B).run1.func1()
/usr/local/go/src/testing/benchmark.go:232 +0x59
created by testing.(*B).run1
/usr/local/go/src/testing/benchmark.go:225 +0xa5
exit status 2
FAIL go.opentelemetry.io/otel/sdk/metric 35.990s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment