Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 // Copyright 2010 The Go Authors. All rights reserved. | 1 // Copyright 2010 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 // Garbage collection benchmark: parse Go packages repeatedly. | 5 // Garbage collection benchmark: parse Go packages repeatedly. |
6 | 6 |
7 package main | 7 package main |
8 | 8 |
9 import ( | 9 import ( |
10 "flag" | 10 "flag" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 var packages = []string{ | 114 var packages = []string{ |
115 "archive/tar", | 115 "archive/tar", |
116 "asn1", | 116 "asn1", |
117 "big", | 117 "big", |
118 "bignum", | 118 "bignum", |
119 "bufio", | 119 "bufio", |
120 "bytes", | 120 "bytes", |
121 "cmath", | |
121 "compress/flate", | 122 "compress/flate", |
122 "compress/gzip", | 123 "compress/gzip", |
123 "compress/zlib", | 124 "compress/zlib", |
124 "container/heap", | 125 "container/heap", |
125 "container/list", | 126 "container/list", |
126 "container/ring", | 127 "container/ring", |
127 "container/vector", | 128 "container/vector", |
128 "crypto/aes", | 129 "crypto/aes", |
129 "crypto/block", | 130 "crypto/block", |
131 "crypto/blowfish", | |
130 "crypto/hmac", | 132 "crypto/hmac", |
131 "crypto/md4", | 133 "crypto/md4", |
132 "crypto/md5", | 134 "crypto/md5", |
135 "crypto/rand", | |
133 "crypto/rc4", | 136 "crypto/rc4", |
134 "crypto/rsa", | 137 "crypto/rsa", |
135 "crypto/sha1", | 138 "crypto/sha1", |
136 "crypto/sha256", | 139 "crypto/sha256", |
140 "crypto/sha512", | |
137 "crypto/subtle", | 141 "crypto/subtle", |
138 "crypto/tls", | 142 "crypto/tls", |
139 "crypto/x509", | 143 "crypto/x509", |
140 "crypto/xtea", | 144 "crypto/xtea", |
141 "debug/dwarf", | 145 "debug/dwarf", |
142 "debug/macho", | 146 "debug/macho", |
143 "debug/elf", | 147 "debug/elf", |
144 "debug/gosym", | 148 "debug/gosym", |
145 "debug/proc", | 149 "debug/proc", |
146 "ebnf", | 150 "ebnf", |
147 "encoding/ascii85", | 151 "encoding/ascii85", |
148 "encoding/base64", | 152 "encoding/base64", |
149 "encoding/binary", | 153 "encoding/binary", |
150 "encoding/git85", | 154 "encoding/git85", |
151 "encoding/hex", | 155 "encoding/hex", |
152 "encoding/pem", | 156 "encoding/pem", |
153 "exec", | 157 "exec", |
154 "exp/datafmt", | 158 "exp/datafmt", |
155 "exp/draw", | 159 "exp/draw", |
156 "exp/eval", | 160 "exp/eval", |
157 "exp/iterable", | 161 "exp/iterable", |
158 "exp/parser", | |
159 "expvar", | 162 "expvar", |
160 "flag", | 163 "flag", |
161 "fmt", | 164 "fmt", |
162 "go/ast", | 165 "go/ast", |
163 "go/doc", | 166 "go/doc", |
164 "go/parser", | 167 "go/parser", |
165 "go/printer", | 168 "go/printer", |
166 "go/scanner", | 169 "go/scanner", |
167 "go/token", | 170 "go/token", |
168 "gob", | 171 "gob", |
169 "hash", | 172 "hash", |
170 "hash/adler32", | 173 "hash/adler32", |
171 "hash/crc32", | 174 "hash/crc32", |
175 "hash/crc64", | |
172 "http", | 176 "http", |
173 "image", | 177 "image", |
174 "image/jpeg", | 178 "image/jpeg", |
175 "image/png", | 179 "image/png", |
176 "io", | 180 "io", |
177 "io/ioutil", | 181 "io/ioutil", |
178 "json", | 182 "json", |
179 "log", | 183 "log", |
180 "math", | 184 "math", |
185 "mime", | |
181 "net", | 186 "net", |
187 "nntp", | |
182 "once", | 188 "once", |
183 "os", | 189 "os", |
184 "os/signal", | 190 "os/signal", |
185 "patch", | 191 "patch", |
186 "path", | 192 "path", |
187 "rand", | 193 "rand", |
188 "reflect", | 194 "reflect", |
189 "regexp", | 195 "regexp", |
190 "rpc", | 196 "rpc", |
191 "runtime", | 197 "runtime", |
(...skipping 10 matching lines...) Expand all Loading... | |
202 "testing/iotest", | 208 "testing/iotest", |
203 "testing/quick", | 209 "testing/quick", |
204 "testing/script", | 210 "testing/script", |
205 "time", | 211 "time", |
206 "unicode", | 212 "unicode", |
207 "utf8", | 213 "utf8", |
208 "utf16", | 214 "utf16", |
209 "websocket", | 215 "websocket", |
210 "xml", | 216 "xml", |
211 } | 217 } |
LEFT | RIGHT |