This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server: about to read some data | |
client: about to write 24 bytes: [80 82 73 32 42 32 72 84 84 80 47 50 46 48 13 10 13 10 83 77 13 10 13 10] | |
client: 24 bytes written | |
client: about to write 9 bytes: [0 0 0 4 0 0 0 0 0] | |
client: 9 bytes written | |
client: about to read some data | |
server: 24 bytes read: [80 82 73 32 42 32 72 84 84 80 47 50 46 48 13 10 13 10 83 77 13 10 13 10] | |
server: about to write 27 bytes: [0 0 18 4 0 0 0 0 0 0 5 0 16 0 0 0 3 0 0 0 250 0 6 0 16 1 64] | |
server: 27 bytes written | |
server: about to read some data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PASS | |
BenchmarkAppendGrowByte 300 4888008 ns/op | |
BenchmarkAppendGrowByte 300 4940008 ns/op | |
BenchmarkAppendGrowByte 300 4940008 ns/op | |
BenchmarkAppendGrowByte 300 4940008 ns/op | |
BenchmarkAppendGrowByte 300 4940008 ns/op | |
BenchmarkAppendGrowByte-2 100 32146057 ns/op | |
BenchmarkAppendGrowByte-2 100 34048062 ns/op | |
BenchmarkAppendGrowByte-2 100 39000069 ns/op | |
BenchmarkAppendGrowByte-2 50 38376068 ns/op |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time package benchmarks: | |
benchmark old ns/op new ns/op delta | |
BenchmarkAfterFunc-2 4263577 3796006 -10.97% | |
BenchmarkAfter-2 1000057200 15459028000 +1445.81% | |
BenchmarkStop-2 820046 1302602 +58.84% | |
BenchmarkSimultaneousAfterFunc-2 957054 1965603 +105.38% | |
BenchmarkStartStop-2 385022 473867 +23.08% | |
BenchmarkTicker-2 1000057 15620028 +1461.91% | |
BenchmarkNow-2 20.6 20.3 -1.46% |