Descriptiongo.crypto/ssh: improve marshal performance
Atom N450, 6g
benchmark old ns/op new ns/op delta
BenchmarkMarshalKexInitMsg 96446 66675 -30.87%
BenchmarkUnmarshalKexInitMsg 155341 142715 -8.13%
BenchmarkMarshalKexDHInitMsg 9499 8340 -12.20%
BenchmarkUnmarshalKexDHInitMsg 4973 5145 +3.46%
Intel E3-1270, 6g
benchmark old ns/op new ns/op delta
BenchmarkMarshalKexInitMsg 23218 16903 -27.20%
BenchmarkUnmarshalKexInitMsg 31384 31640 +0.82%
BenchmarkMarshalKexDHInitMsg 1943 1661 -14.51%
BenchmarkUnmarshalKexDHInitMsg 915 941 +2.84%
Patch Set 1 #Patch Set 2 : diff -r 91ccd0bd392e https://code.google.com/p/go.crypto #Patch Set 3 : diff -r 91ccd0bd392e https://code.google.com/p/go.crypto #
Total comments: 8
Patch Set 4 : diff -r 91ccd0bd392e https://code.google.com/p/go.crypto #Patch Set 5 : diff -r 861daa0e6913 https://code.google.com/p/go.crypto #Patch Set 6 : diff -r 861daa0e6913 https://code.google.com/p/go.crypto #
Total comments: 2
MessagesTotal messages: 7
|