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

Function Benchmark_FloorFast

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

Source from the content-addressed store, hash-verified

58}
59
60func Benchmark_FloorFast(b *testing.B) {
61 input := New(200, 2)
62 b.ResetTimer()
63 for i := 0; i < b.N; i++ {
64 input.Floor()
65 }
66}
67
68func Benchmark_FloorRegular(b *testing.B) {
69 input := New(200, -2)

Callers

nothing calls this directly

Calls 2

NewFunction · 0.85
FloorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…