FAQ
Change 6ec24fe2e501 broke the windows-386-ec2 build:
http://build.golang.org/log/a8d0e6ffbbc0fba461a78f5752e74cebf20d38e0

net: remove unnecessary Close contention.

Contention profile in BenchmarkTCPOneShot (Core 2 Quad):

Before
Total: 80.285 seconds
44.743 55.7% 55.7% 44.743 55.7% runtime.chanrecv1
31.995 39.9% 95.6% 31.995 39.9% sync.(*Mutex).Lock
3.547 4.4% 100.0% 3.547 4.4% runtime.chansend1

After
Total: 48.341 seconds
45.810 94.8% 94.8% 45.810 94.8% runtime.chanrecv1
2.530 5.2% 100.0% 2.530 5.2% runtime.chansend1
0.001 0.0% 100.0% 0.001 0.0% sync.(*Mutex).Lock

R=golang

http://code.google.com/p/go/source/detail?r=6ec24fe2e501

$ tail -200 < log
ok container/ring 0.094s
? crypto [no test files]
ok crypto/aes 0.165s
ok crypto/cipher 0.213s
ok crypto/des 0.162s
ok crypto/dsa 0.165s
ok crypto/ecdsa 0.080s
ok crypto/elliptic 0.129s
ok crypto/hmac 0.165s
ok crypto/md5 0.084s
ok crypto/rand 0.061s
ok crypto/rc4 0.125s
ok crypto/rsa 0.582s
ok crypto/sha1 0.124s
ok crypto/sha256 0.150s
ok crypto/sha512 0.044s
ok crypto/subtle 0.153s
ok crypto/tls 1.226s
ok crypto/x509 2.786s
? crypto/x509/pkix [no test files]
ok database/sql 0.216s
ok database/sql/driver 0.093s
ok debug/dwarf 0.194s
ok debug/elf 0.185s
ok debug/gosym 0.110s
ok debug/macho 0.168s
ok debug/pe 0.156s
ok encoding/ascii85 0.078s
ok encoding/asn1 0.061s
ok encoding/base32 0.160s
ok encoding/base64 0.082s
ok encoding/binary 0.092s
ok encoding/csv 0.147s
ok encoding/gob 0.178s
ok encoding/hex 0.152s
ok encoding/json 0.246s
ok encoding/pem 0.138s
ok encoding/xml 0.038s
ok errors 0.130s
ok exp/cookiejar 0.179s
ok exp/ebnf 0.043s
ok exp/ebnflint 0.098s
ok exp/gotype 2.239s
ok exp/html 0.392s
ok exp/html/atom 0.132s
ok exp/locale/collate 0.208s
ok exp/locale/collate/build 0.175s
? exp/locale/collate/tools/colcmp [no test files]
ok exp/norm 2.312s
ok exp/types 0.309s
ok exp/utf8string 0.143s
ok exp/winfsnotify 0.213s
ok expvar 0.272s
ok flag 0.127s
ok fmt 0.201s
ok go/ast 0.139s
ok go/build 0.721s
ok go/doc 0.084s
ok go/format 0.192s
ok go/parser 0.206s
ok go/printer 1.030s
ok go/scanner 0.121s
ok go/token 0.131s
? hash [no test files]
ok hash/adler32 0.088s
ok hash/crc32 0.078s
ok hash/crc64 0.134s
ok hash/fnv 0.102s
ok html 0.179s
ok html/template 0.096s
ok image 0.336s
ok image/color 0.035s
ok image/draw 0.177s
? image/gif [no test files]
ok image/jpeg 0.504s
ok image/png 0.088s
ok index/suffixarray 0.186s
ok io 0.111s
ok io/ioutil 0.123s
ok log 0.138s
? log/syslog [no test files]
ok math 0.279s
ok math/big 0.841s
ok math/cmplx 0.176s
ok math/rand 0.171s
ok mime 0.167s
ok mime/multipart 0.476s
--- FAIL: TestVariousDeadlines1Proc (1.00 seconds)
timeout_test.go:476: 1ns run 1/1
timeout_test.go:496: for 1ns run 1/1, good client timeout after 999.9us,
reading 57344 bytes
timeout_test.go:506: for 1ns run 1/1: server in 1.9998ms wrote 98304,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 2ns run 1/1
timeout_test.go:496: for 2ns run 1/1, good client timeout after 999.9us,
reading 65536 bytes
timeout_test.go:506: for 2ns run 1/1: server in 1.9998ms wrote 98304,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 5ns run 1/1
timeout_test.go:496: for 5ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 5ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 50ns run 1/1
timeout_test.go:496: for 50ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 50ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 100ns run 1/1
timeout_test.go:496: for 100ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 100ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 200ns run 1/1
timeout_test.go:496: for 200ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 200ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 500ns run 1/1
timeout_test.go:496: for 500ns run 1/1, good client timeout after 999.9us,
reading 16384 bytes
timeout_test.go:506: for 500ns run 1/1: server in 999.9us wrote 32768,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 750ns run 1/1
timeout_test.go:496: for 750ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 750ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 1us run 1/1
timeout_test.go:496: for 1us run 1/1, good client timeout after 999.9us,
reading 32768 bytes
timeout_test.go:506: for 1us run 1/1: server in 1.9998ms wrote 65536,
WSASend tcp 127.0.0.1:55116: The specified network name is no longer
available.
timeout_test.go:476: 5us run 1/1
timeout_test.go:480: Dial: dial tcp 127.0.0.1:55116: No connection could
be made because the target machine actively refused it.
--- FAIL: TestVariousDeadlines4Proc (1.01 seconds)
timeout_test.go:476: 1ns run 1/1
timeout_test.go:496: for 1ns run 1/1, good client timeout after 999.9us,
reading 8192 bytes
timeout_test.go:506: for 1ns run 1/1: server in 0 wrote 32768, WSASend tcp
127.0.0.1:55127: An existing connection was forcibly closed by the remote
host.
timeout_test.go:476: 2ns run 1/1
timeout_test.go:496: for 2ns run 1/1, good client timeout after 999.9us,
reading 8192 bytes
timeout_test.go:506: for 2ns run 1/1: server in 999.9us wrote 32768,
WSASend tcp 127.0.0.1:55127: An existing connection was forcibly closed by
the remote host.
timeout_test.go:476: 5ns run 1/1
timeout_test.go:496: for 5ns run 1/1, good client timeout after 999.9us,
reading 16384 bytes
timeout_test.go:506: for 5ns run 1/1: server in 999.9us wrote 32768,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 50ns run 1/1
timeout_test.go:496: for 50ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 50ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 100ns run 1/1
timeout_test.go:496: for 100ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 100ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 200ns run 1/1
timeout_test.go:496: for 200ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 200ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 500ns run 1/1
timeout_test.go:496: for 500ns run 1/1, good client timeout after 999.9us,
reading 16384 bytes
timeout_test.go:506: for 500ns run 1/1: server in 999.9us wrote 32768,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 750ns run 1/1
timeout_test.go:496: for 750ns run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 750ns run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 1us run 1/1
timeout_test.go:496: for 1us run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 1us run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 5us run 1/1
timeout_test.go:496: for 5us run 1/1, good client timeout after 999.9us,
reading 24576 bytes
timeout_test.go:506: for 5us run 1/1: server in 999.9us wrote 65536,
WSASend tcp 127.0.0.1:55127: The specified network name is no longer
available.
timeout_test.go:476: 25us run 1/1
timeout_test.go:496: for 25us run 1/1, good client timeout after 999.9us,
reading 8192 bytes
timeout_test.go:506: for 25us run 1/1: server in 999.9us wrote 32768,
WSASend tcp 127.0.0.1:55127: An existing connection was forcibly closed by
the remote host.
timeout_test.go:476: 250us run 1/1
timeout_test.go:480: Dial: dial tcp 127.0.0.1:55127: No connection could
be made because the target machine actively refused it.
FAIL
FAIL net 4.038s
ok net/http 7.625s
ok net/http/cgi 0.301s
ok net/http/fcgi 0.040s
ok net/http/httptest 0.226s
ok net/http/httputil 0.204s
? net/http/pprof [no test files]
ok net/mail 0.162s
ok net/rpc 0.179s
ok net/rpc/jsonrpc 0.329s
ok net/smtp 0.193s
ok net/textproto 0.144s
ok net/url 0.156s
ok old/netchan 0.165s
ok os 0.230s
ok os/exec 0.553s
ok os/signal 2.219s
ok os/user 11.349s
ok path 0.028s
ok path/filepath 0.624s
ok reflect 0.192s
ok regexp 0.309s
ok regexp/syntax 2.474s
ok runtime 7.127s
? runtime/cgo [no test files]
ok runtime/debug 0.084s
ok runtime/pprof 1.196s
ok sort 0.306s
ok strconv 1.618s
ok strings 0.247s
ok sync 0.070s
ok sync/atomic 0.091s
ok syscall 0.144s
? testing [no test files]
? testing/iotest [no test files]
ok testing/quick 0.198s
ok text/scanner 0.122s
ok text/tabwriter 0.125s
ok text/template 0.170s
ok text/template/parse 0.109s
ok time 54.083s
ok unicode 0.138s
ok unicode/utf16 0.137s
ok unicode/utf8 0.147s
? unsafe [no test files]

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedDec 1, '12 at 8:39a
activeDec 1, '12 at 8:39a
posts1
users1
websitegolang.org

1 user in discussion

Builder: 1 post

People

Translate

site design / logo © 2022 Grokbase