summaryrefslogtreecommitdiff
path: root/test/bench/reverse-complement.go
AgeCommit message (Collapse)AuthorFilesLines
2009-12-151) Change default gofmt default settings forRobert Griesemer1-22/+22
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 5th and last set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180050
2009-12-04test/bench: use range in reverse-complementRuss Cox1-2/+2
1.9s gcc reverse-complement.c reverse-complement.go 4.5s / 3.5s original, with/without bounds checks 3.5s / 3.3s bounds check reduction 3.3s / 2.8s smarter garbage collector 2.6s / 2.3s assembler bytes.IndexByte 2.5s / 2.1s even smarter garbage collector 2.3s / 2.1s fix optimizer unnecessary spill bug 2.0s / 1.9s change loop to range (this CL) R=r http://codereview.appspot.com/166072
2009-12-04test/bench: dead code in reverse-complementRuss Cox1-30/+3
R=r http://codereview.appspot.com/165065
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w test/benchRuss Cox1-7/+7
except chameneosredux which i know is being edited require gofmt for test/bench R=r http://codereview.appspot.com/157110
2009-11-20test/bench revisions;Russ Cox1-21/+33
* reverse-complement: port C algorithm to Go saves 30% on my MacBook Pro and makes it a fairer comparison. * test reverse-complement with and without GC (another 15%) * revise timing.sh to work on more systems * avoid two glibcisms in fasta.c R=r http://codereview.appspot.com/156110
2009-11-18remove bytes.CopyRob Pike1-26/+25
replace all calls with calls to copy use copy in regexp and bytes.Buffer R=rsc CC=golang-dev http://codereview.appspot.com/157073
2009-08-27remove Line in bufio.ReadLine(Bytes|Slice|String)Russ Cox1-1/+1
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
2009-08-04another benchmark: reverse-complementRob Pike1-0/+121
R=rsc DELTA=682 (511 added, 171 deleted, 0 changed) OCL=32725 CL=32727