1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:50:21 -07:00
go/test/bench/go1
Shenghou Ma 13075ed416 test/bench/go1: use raw string instead of string addition
to reduce compile time memory/stack usage.
Update #4970
$ go test -c ../test/bench/go1
before:
0.36user 0.07system 0:00.44elapsed 100%CPU
(0avgtext+0avgdata 540720maxresident)k
0inputs+19840outputs (0major+56451minor)pagefaults 0swaps
after:
0.33user 0.05system 0:00.39elapsed 100%CPU
(0avgtext+0avgdata 289936maxresident)k
0inputs+19864outputs (0major+29615minor)pagefaults 0swaps

And stack usage is reduced to below 1MiB.

R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/7436050
2013-03-05 04:23:37 +08:00
..
binarytree_test.go test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
fannkuch_test.go test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00
fasta_test.go test/bench/go1: reduce fasta data size for linux/arm 2012-06-06 07:49:58 +10:00
gob_test.go test/bench/go1: fix gzip test 2012-06-05 00:14:39 +08:00
gzip_test.go build: re-enable some broken tests in run.bash 2012-03-08 06:23:56 +08:00
json_test.go test/bench/go1: use raw string instead of string addition 2013-03-05 04:23:37 +08:00
jsondata_test.go test/bench/go1: use raw string instead of string addition 2013-03-05 04:23:37 +08:00
mandel_test.go test/bench/go1: add mandelbrot for floating point 2012-05-30 10:26:59 -04:00
parser_test.go test/bench/go1: add go/parser benchmark 2012-06-07 10:23:45 +10:00
parserdata_test.go test/bench/go1: add go/parser benchmark 2012-06-07 10:23:45 +10:00
revcomp_test.go test/bench/go1: reduce fasta data size for linux/arm 2012-06-06 07:49:58 +10:00
template_test.go test/bench/go1: first draft of Go 1 benchmark suite 2011-12-15 12:32:59 -05:00