(b *testing.B)
| 44 | } |
| 45 | |
| 46 | func BenchmarkNewFromStringFloat(b *testing.B) { |
| 47 | rng := rand.New(rand.NewSource(0xdead1337)) |
| 48 | in := make([]float64, b.N) |
| 49 | for i := range in { |
| 50 | in[i] = rng.NormFloat64() * 10e20 |
| 51 | } |
| 52 | b.ReportAllocs() |
| 53 | b.StartTimer() |
| 54 | for i := 0; i < b.N; i++ { |
| 55 | in := strconv.FormatFloat(in[i], 'f', -1, 64) |
| 56 | _, _ = NewFromString(in) |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | func Benchmark_FloorFast(b *testing.B) { |
| 61 | input := New(200, 2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…