• Robert Griesemer's avatar
    strconv: faster float conversion · 127b5a66
    Robert Griesemer authored
    - added AppendFloatX benchmarks
    - 2% to 13% better performance
    - check for illegal bitSize
    
    benchmark                                   old ns/op    new ns/op    delta
    strconv_test.BenchmarkFormatFloatDecimal         2993         2733   -8.69%
    strconv_test.BenchmarkFormatFloat                3384         3141   -7.18%
    strconv_test.BenchmarkFormatFloatExp             9192         9010   -1.98%
    strconv_test.BenchmarkFormatFloatBig             3279         3207   -2.20%
    strconv_test.BenchmarkAppendFloatDecimal         2837         2478  -12.65%
    strconv_test.BenchmarkAppendFloat                3196         2928   -8.39%
    strconv_test.BenchmarkAppendFloatExp             9028         8773   -2.82%
    strconv_test.BenchmarkAppendFloatBig             3151         2782  -11.71%
    
    R=rsc, bradfitz
    CC=golang-dev
    https://golang.org/cl/5448122
    127b5a66
Name
Last commit
Last update
..
Makefile Loading commit data...
atob.go Loading commit data...
atob_test.go Loading commit data...
atof.go Loading commit data...
atof_test.go Loading commit data...
atoi.go Loading commit data...
atoi_test.go Loading commit data...
decimal.go Loading commit data...
decimal_test.go Loading commit data...
fp_test.go Loading commit data...
ftoa.go Loading commit data...
ftoa_test.go Loading commit data...
internal_test.go Loading commit data...
itoa.go Loading commit data...
itoa_test.go Loading commit data...
quote.go Loading commit data...
quote_test.go Loading commit data...
testfp.txt Loading commit data...