1
0
mirror of https://github.com/golang/go synced 2024-10-03 06:21:21 -06:00
go/src/strconv
Robert Griesemer 81a3f291f0 strconv: simplified logic resulting in faster float formatting
benchmark                               old ns/op     new ns/op     delta
BenchmarkFormatFloatDecimal             300           283           -5.67%
BenchmarkFormatFloat                    383           381           -0.52%
BenchmarkFormatFloatExp                 359           357           -0.56%
BenchmarkFormatFloatNegExp              357           358           +0.28%
BenchmarkFormatFloatBig                 468           430           -8.12%
BenchmarkAppendFloatDecimal             104           92.5          -11.06%
BenchmarkAppendFloat                    199           190           -4.52%
BenchmarkAppendFloatExp                 172           167           -2.91%
BenchmarkAppendFloatNegExp              172           169           -1.74%
BenchmarkAppendFloatBig                 280           235           -16.07%
BenchmarkAppendFloat32Integer           104           92.4          -11.15%
BenchmarkAppendFloat32ExactFraction     168           171           +1.79%
BenchmarkAppendFloat32Point             206           199           -3.40%
BenchmarkAppendFloat32Exp               167           167           +0.00%
BenchmarkAppendFloat32NegExp            167           166           -0.60%
BenchmarkAppendFloat64Fixed1            134           129           -3.73%
BenchmarkAppendFloat64Fixed2            144           136           -5.56%
BenchmarkAppendFloat64Fixed3            138           134           -2.90%
BenchmarkAppendFloat64Fixed4            145           138           -4.83%

Change-Id: Ia143840cb34cbd1cebd6b691dd0a45b7264b406c
Reviewed-on: https://go-review.googlesource.com/3920
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-02-11 17:45:19 +00:00
..
testdata
atob_test.go
atob.go
atof_test.go
atof.go
atoi_test.go strconv: add atoi tests for uncommon bases and syntax errors 2015-01-08 16:51:47 +00:00
atoi.go strconv: speed up atoi for common cases 2015-01-08 20:58:26 +00:00
decimal_test.go
decimal.go strconv: fix internal documentation (clarification, typos) 2015-02-05 22:36:19 +00:00
extfloat.go
fp_test.go
ftoa_test.go
ftoa.go strconv: simplified logic resulting in faster float formatting 2015-02-11 17:45:19 +00:00
internal_test.go
isprint.go
itoa_test.go strconv/itoa: add test to generate the longest output string possible by formatBits 2014-12-27 22:35:08 +00:00
itoa.go strconv: optimize decimal to string conversion 2014-12-30 23:28:02 +00:00
makeisprint.go
quote_example_test.go
quote_test.go
quote.go
strconv_test.go