MCPcopy Create free account
hub / github.com/cockroachdb/apd / BenchmarkExp

Function BenchmarkExp

bench_test.go:79–91  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

77}
78
79func BenchmarkExp(b *testing.B) {
80 precision := []int{5, 10, 100}
81 scale := []int{-4, -1, 2}
82 digits := []int{-100, -10, -2, 2, 10, 100}
83 runBenches(
84 b, precision, scale, digits,
85 func(b *testing.B, ctx *Context, x *Decimal) {
86 if _, err := ctx.Exp(&Decimal{}, x); err != nil {
87 b.Fatal(err)
88 }
89 },
90 )
91}
92
93func BenchmarkLn(b *testing.B) {
94 precision := []int{2, 10, 100}

Callers

nothing calls this directly

Calls 2

runBenchesFunction · 0.85
ExpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…