]> Cypherpunks repositories - gostls13.git/commit
test/bench/go1: fix gzip test
authorShenghou Ma <minux.ma@gmail.com>
Mon, 4 Jun 2012 16:14:39 +0000 (00:14 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 4 Jun 2012 16:14:39 +0000 (00:14 +0800)
commit6b4ae1d28e7a33c84e049c65c4fe658a6956d11d
tree11b218d43cee8f48ed41ac82824f7bcb88b8a4ba
parent622ace8ffe6aab56c35bf80c3a9853c833839a15
test/bench/go1: fix gzip test
      We can't depend on init() order, and certainly we don't want to
register all future benchmarks that use jsonbytes or jsondata to init()
in json_test.go, so we use a more general solution: make generation of
jsonbytes and jsondata their own function so that the compiler will take
care of the order.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6282046
test/bench/go1/gob_test.go
test/bench/go1/json_test.go