MCPcopy
hub / github.com/shopspring/decimal / BenchmarkDecimal_IsInteger

Function BenchmarkDecimal_IsInteger

decimal_bench_test.go:207–215  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

205}
206
207func BenchmarkDecimal_IsInteger(b *testing.B) {
208 d := RequireFromString("12.000")
209
210 b.ReportAllocs()
211 b.StartTimer()
212 for i := 0; i < b.N; i++ {
213 d.IsInteger()
214 }
215}
216
217func BenchmarkDecimal_Pow(b *testing.B) {
218 d1 := RequireFromString("5.2")

Callers

nothing calls this directly

Calls 2

RequireFromStringFunction · 0.85
IsIntegerMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…