From dd88f23a2006307f835f42063b5168ec56c2c428 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 2 Nov 2023 21:48:03 -0700 Subject: math/big: implement Rat.FloatPrec goos: darwin goarch: amd64 pkg: math/big cpu: Intel(R) Core(TM) i7-8700B CPU @ 3.20GHz BenchmarkFloatPrecExact/1-12 9380685 125.0 ns/op BenchmarkFloatPrecExact/10-12 3780493 321.2 ns/op BenchmarkFloatPrecExact/100-12 698272 1679 ns/op BenchmarkFloatPrecExact/1000-12 117975 9113 ns/op BenchmarkFloatPrecExact/10000-12 5913 192768 ns/op BenchmarkFloatPrecExact/100000-12 164 7401817 ns/op BenchmarkFloatPrecExact/1000000-12 4 293568523 ns/op BenchmarkFloatPrecInexact/1-12 12836612 91.26 ns/op BenchmarkFloatPrecInexact/10-12 10144908 114.9 ns/op BenchmarkFloatPrecInexact/100-12 4121931 297.3 ns/op BenchmarkFloatPrecInexact/1000-12 1275886 927.7 ns/op BenchmarkFloatPrecInexact/10000-12 170392 6546 ns/op BenchmarkFloatPrecInexact/100000-12 18307 65232 ns/op BenchmarkFloatPrecInexact/1000000-12 1701 621412 ns/op Fixes #50489. Change-Id: Ic952f00e35d42f2470ecab53df712721997eac94 Reviewed-on: https://go-review.googlesource.com/c/go/+/539299 TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Auto-Submit: Robert Griesemer Run-TryBot: Robert Griesemer Reviewed-by: Robert Griesemer --- api/next/50489.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 api/next/50489.txt (limited to 'api') diff --git a/api/next/50489.txt b/api/next/50489.txt new file mode 100644 index 0000000000..5fc8723c9e --- /dev/null +++ b/api/next/50489.txt @@ -0,0 +1 @@ +pkg math/big, method (*Rat) FloatPrec() (int, bool) #50489 -- cgit v1.2.3-54-g00ecf