]> Cypherpunks repositories - gostls13.git/commit
test/bench/go1: add go/parser benchmark
authorDave Cheney <dave@cheney.net>
Thu, 7 Jun 2012 00:23:45 +0000 (10:23 +1000)
committerDave Cheney <dave@cheney.net>
Thu, 7 Jun 2012 00:23:45 +0000 (10:23 +1000)
commit64236820193864cdb6ad28dc475626337cf18a23
tree5f95b6c0d9a53915a26426b150798278e6690dd5
parentf54d61061cd903fdfdaa94ace66d53f0362db032
test/bench/go1: add go/parser benchmark

As discussed in

https://groups.google.com/d/msg/golang-dev/Na9XE6mcQyY/zbeBI7R-vnoJ

Here is a static copy of the go/parser benchmark. I ended up using
fancy encodings because the original parser.go had a number of `s
scattered throughout which made it hard to embed the source directly.

Curiously on my laptop this benchmark always scores roughly 10% higher
than the standalone benchmark. This may be down to the generation of
the fasta data set triggering the cpu governor to raise the cpu speed.
However the benchmark is consistent with itself across multiple runs.

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/6305055
test/bench/go1/parser_test.go [new file with mode: 0644]
test/bench/go1/parserdata_test.go [new file with mode: 0644]