1
0
mirror of https://github.com/golang/go synced 2024-09-28 22:24:29 -06:00
go/api/next
Robert Griesemer dd88f23a20 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>
2023-11-14 00:44:42 +00:00
..
50102.txt archive/tar: add FileInfoNames interface 2023-08-07 00:25:25 +00:00
50489.txt math/big: implement Rat.FloatPrec 2023-11-14 00:44:42 +00:00
51246.txt syscall: add support to get pidfd from ForkExec on Linux 2023-09-07 19:11:15 +00:00
51971.txt net/http: add ServeFileFS, FileServerFS, NewFileTransportFS 2023-08-07 17:07:12 +00:00
53693.txt encoding: add AppendEncode and AppendDecode 2023-08-17 16:23:42 +00:00
54898.txt archive/zip: add AddFS method to zip Writer 2023-07-31 18:10:41 +00:00
56353.txt slices: add Concat 2023-08-08 14:31:39 +00:00
57178.txt crypto/x509: implement AddCertWithConstraint 2023-11-09 19:41:40 +00:00
58000.txt archive/tar: add AddFS method to Writer 2023-09-13 13:59:01 +00:00
59599.txt reflect: deprecate PtrTo 2023-07-27 23:28:51 +00:00
60061.txt go/ast: add Unparen(Expr) helper 2023-07-20 20:19:51 +00:00
60088.txt reflect: add TypeFor 2023-07-31 15:50:15 +00:00
60204.txt cmp: add Or 2023-09-25 14:30:20 +00:00
60370.txt database/sql: add Null[T] 2023-08-07 14:26:37 +00:00
60665.txt crypto/x509: add new OID type and use it in Certificate 2023-10-31 19:22:19 +00:00
61410.txt net/http: implement path value methods on Request 2023-09-14 00:00:28 +00:00
61619.txt html/template: support parsing complex JS template literals 2023-10-02 15:18:39 +00:00
61642.txt net/netip: add AddrPort.Compare and Prefix.Compare 2023-09-11 20:26:41 +00:00
61716.txt math/rand/v2: delete Mitchell/Reeds source 2023-10-30 17:09:26 +00:00
61758.txt testing/slogtest: add Run to run cases as subtests 2023-09-08 20:37:12 +00:00
61870.txt io: add (*SectionReader).Outer() 2023-10-09 22:04:41 +00:00
61974.txt debug/elf,cmd/link: add additional MIPS64 relocation type 2023-09-08 04:32:10 +00:00
62037.txt go/types, types2: implement Info.PkgNameOf 2023-11-11 02:02:35 +00:00
62039.txt go/version: add new package 2023-11-06 23:20:32 +00:00
62418.txt log/slog: add LogLoggerLevel to enable setting level on the default logger 2023-11-10 21:25:30 +00:00
62605.txt go/types: export Info.FileVersions 2023-11-07 16:52:44 +00:00
63223.txt go/types, types2: implement Alias proposal (export API) 2023-11-13 20:18:45 +00:00
63725.txt debug/elf,cmd/link: add additional relocations for loong64 2023-11-02 19:46:03 +00:00