1
0
mirror of https://github.com/golang/go synced 2024-10-05 05:11:25 -06:00
go/src/cmd
Josh Bleecher Snyder 194c79c163 [dev.ssa] cmd/compile: add constant cache
The cache gets a 62% hit rate while compiling
the standard library.


name      old time/op    new time/op    delta
Template     449ms ± 2%     443ms ± 4%  -1.40%  (p=0.006 n=23+25)
GoTypes      1.54s ± 1%     1.50s ± 2%  -2.53%  (p=0.000 n=22+22)
Compiler     5.51s ± 1%     5.39s ± 1%  -2.29%  (p=0.000 n=23+25)

name      old alloc/op   new alloc/op   delta
Template    90.4MB ± 0%    90.0MB ± 0%  -0.45%  (p=0.000 n=25+25)
GoTypes      334MB ± 0%     331MB ± 0%  -1.05%  (p=0.000 n=25+25)
Compiler    1.12GB ± 0%    1.10GB ± 0%  -1.57%  (p=0.000 n=25+24)

name      old allocs/op  new allocs/op  delta
Template      681k ± 0%      682k ± 0%  +0.26%  (p=0.000 n=25+25)
GoTypes      2.23M ± 0%     2.23M ± 0%  +0.05%  (p=0.000 n=23+24)
Compiler     6.46M ± 0%     6.46M ± 0%  +0.02%  (p=0.000 n=24+25)


Change-Id: I2629c291892827493d7b55ec4d83f6973a2ab133
Reviewed-on: https://go-review.googlesource.com/20026
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-02-29 22:40:43 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api cmd/api: fix benchmark to ignore internal packages 2016-02-20 01:58:38 +00:00
asm [dev.ssa] Merge remote-tracking branch 'origin/master' into mergebranch 2016-02-23 14:42:20 -08:00
cgo all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
compile [dev.ssa] cmd/compile: add constant cache 2016-02-29 22:40:43 +00:00
cover cmd/cover: don't overskip children nodes when adding counters 2016-02-22 21:06:57 +00:00
dist [dev.ssa] Merge remote-tracking branch 'origin/master' into mergebranch 2016-02-23 14:42:20 -08:00
doc cmd/doc: handle embedded fields properly 2016-02-22 23:40:02 +00:00
fix cmd/fix: add gotypes module 2015-07-17 01:47:14 +00:00
go all: use cannot instead of can not 2016-02-21 15:35:50 +00:00
gofmt cmd/gofmt: Ignore file not found errors. 2016-02-19 00:13:18 +00:00
internal [dev.ssa] cmd/compile: shrink stack guard 2016-02-25 22:32:48 +00:00
link cmd/link: typo in error message 2016-02-20 20:16:17 +00:00
newlink cmd/internal/obj/mips: added support for GOARCH=mips64{,le} 2015-11-12 04:42:44 +00:00
nm all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
objdump cmd/objdump: skip TestDisasm* for mips64{,le} 2015-09-10 18:27:09 +00:00
pack all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
pprof cmd/pprof: fix scaling of "gigabyte" unit 2015-12-17 16:38:28 +00:00
trace cmd/trace: don't fail when no browser is available 2015-08-21 20:02:23 +00:00
vet cmd/vet: don't crash in cgo checker if type is unknown 2016-02-03 03:34:02 +00:00
yacc cmd/yacc: memory allocation improvements 2015-11-26 17:42:14 +00:00