diff options
author | Robert Griesemer <gri@golang.org> | 2023-11-02 21:48:03 -0700 |
---|---|---|
committer | Gopher Robot <gobot@golang.org> | 2023-11-14 00:44:42 +0000 |
commit | dd88f23a2006307f835f42063b5168ec56c2c428 (patch) | |
tree | f04779ab7ece93ef16a057f3add4d92532383de0 /api | |
parent | 50034e9faac531e0e4d6cbf4d172462ca23c9be2 (diff) | |
download | go-dd88f23a2006307f835f42063b5168ec56c2c428.tar.gz go-dd88f23a2006307f835f42063b5168ec56c2c428.zip |
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 <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'api')
-rw-r--r-- | api/next/50489.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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 |