• Robert Griesemer's avatar
    strconv: simplified logic resulting in faster float formatting · 81a3f291
    Robert Griesemer authored
    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/3920Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
    81a3f291
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
cmd Loading commit data...
compress Loading commit data...
container Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
internal/syscall Loading commit data...
io Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
os Loading commit data...
path Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...