• Shenghou Ma's avatar
    test/bench/go1: use raw string instead of string addition · 13075ed4
    Shenghou Ma authored
    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
    13075ed4
Name
Last commit
Last update
..
binarytree_test.go Loading commit data...
fannkuch_test.go Loading commit data...
fasta_test.go Loading commit data...
gob_test.go Loading commit data...
gzip_test.go Loading commit data...
json_test.go Loading commit data...
jsondata_test.go Loading commit data...
mandel_test.go Loading commit data...
parser_test.go Loading commit data...
parserdata_test.go Loading commit data...
revcomp_test.go Loading commit data...
template_test.go Loading commit data...