summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2010-01-06update timing logs for benchmarks.Rob Pike1-0/+84
some significant improvements: reverse-complement nbody (gccgo only) regex-dna pidigits one mysterious drop: binary-tree.go (gccgo only) R=rsc CC=golang-dev http://codereview.appspot.com/181158
2009-12-29Test case for issue 475 and related bug.Robert Griesemer3-0/+49
R=iant CC=golang-dev http://codereview.appspot.com/183087
2009-12-29test case for issue 471Robert Griesemer2-0/+22
R=iant CC=golang-dev http://codereview.appspot.com/183084
2009-12-23Add a test for issue 337.Ian Lance Taylor1-0/+25
gccgo currently miscompiles this test. R=rsc CC=golang-dev http://codereview.appspot.com/181050
2009-12-18More evaluation order tests, for global variables and switch.Ian Lance Taylor1-0/+53
gccgo currently fails this test. R=rsc CC=golang-dev http://codereview.appspot.com/179108
2009-12-18gc: method expressions on concrete typesRuss Cox2-2/+16
R=ken2 http://codereview.appspot.com/180092
2009-12-18runtime: fix race conditionAdam Langley2-0/+86
(Thanks to ken and rsc for pointing this out) rsc: ken pointed out that there's a race in the new one-lock-per-channel code. the issue is that if one goroutine has gone to sleep doing select { case <-c1: case <-c2: } and then two more goroutines try to send on c1 and c2 simultaneously, the way that the code makes sure only one wins is the selgen field manipulation in dequeue: // if sgp is stale, ignore it if(sgp->selgen != sgp->g->selgen) { //prints("INVALID PSEUDOG POINTER\n"); freesg(c, sgp); goto loop; } // invalidate any others sgp->g->selgen++; but because the global lock is gone both goroutines will be fiddling with sgp->g->selgen at the same time. This results in a 7% slowdown in the single threaded case for a ping-pong microbenchmark. Since the cas predominantly succeeds, adding a simple check first didn't make any difference. R=rsc CC=golang-dev http://codereview.appspot.com/180068
2009-12-17gc: fix compiler crashRuss Cox1-0/+17
R=ken2 CC=dho http://codereview.appspot.com/179097
2009-12-15runtime: return zero value in x, ok = <-c when ok == falseRuss Cox1-0/+20
Fixes issue 401. R=ken2 http://codereview.appspot.com/180053
2009-12-15gc: fix import name resolutionRuss Cox1-0/+10
Fixes issue 403. R=ken2 http://codereview.appspot.com/180052
2009-12-15gc: bug fixes.Russ Cox3-0/+67
* better error for lookup of unexported field * do not assign "ideal string" type to typed string literal * do not confuse methods and fields during interface check Fixes issue 410. Fixes issue 411. Fixes issue 426. R=ken2 http://codereview.appspot.com/179069
2009-12-15gc: allow ... in method listsRuss Cox1-0/+8
R=ken2 http://codereview.appspot.com/179070
2009-12-151) Change default gofmt default settings forRobert Griesemer15-558/+558
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-15gc: double-check usage of ...Russ Cox1-0/+19
Fixes issue 423. R=ken2 http://codereview.appspot.com/180045
2009-12-15gc: var x, ok = m[y]Russ Cox1-0/+34
Fixes issue 384. R=ken2 http://codereview.appspot.com/179061
2009-12-15Tweak test to work with both 6g and gccgo.Ian Lance Taylor1-3/+1
Pull the struct into a single line, since 6g reports the error on the last line of the struct definition and gccgo reports it on the first line. 6g: bug215.go:12: invalid recursive type A gccgo: bug215.go:12:6: error: invalid recursive type ‘A’ R=rsc http://codereview.appspot.com/180044
2009-12-11Remove GOBIN in PATH dependency; don't assume cwd is $GOROOT/srcDevon H. O'Dell1-2/+5
This change removes the necessity to have GOBIN in $PATH, and also doesn't assume that the build is being run from $GOROOT/src. This is a minimal set of necessary changes to get Go to build happily from the FreeBSD ports collection. R=rsc CC=golang-dev http://codereview.appspot.com/171044 Committer: Russ Cox <rsc@golang.org>
2009-12-10trailing comma's are not accepted with current syntaxRobert Griesemer1-2/+1
R=rsc, ken2 http://codereview.appspot.com/174047
2009-12-10test/fixedbug: drop obsolete bug125, bug166Russ Cox2-28/+0
R=gri CC=golang-dev http://codereview.appspot.com/173044
2009-12-10make test/ken safe for optional semisRobert Griesemer32-394/+188
R=rsc, ken2, ken3 http://codereview.appspot.com/174042
2009-12-10make test/fixedbugs save for optional semisRobert Griesemer8-17/+13
R=rsc http://codereview.appspot.com/173045
2009-12-09missed a couple of files in testRobert Griesemer2-18/+27
R=rsc, r http://codereview.appspot.com/172045
2009-12-09making some more non-gofmt'ed files save for new semicolon ruleRobert Griesemer12-42/+39
R=rsc, r http://codereview.appspot.com/171051
2009-12-09- gofmt these filesRobert Griesemer3-270/+243
- remove use of implicit string concatenation - these appear to be the only files correctly compiling under test that used implicit string concatenation R=rsc http://codereview.appspot.com/172043
2009-12-07test/bench: faster fasta (mostly due to bufio fix)Russ Cox1-18/+16
R=r http://codereview.appspot.com/165083 Committer: Russ Cox <rsc@golang.org>
2009-12-07changes necessary to get the new chameneosredux onto ↵Roger Peppe2-3/+4
shootout.alioth.debian.org . it's now there: http://shootout.alioth.debian.org/u32q/benchmark.php?test=chameneosredux&lang=all&box=1! R=r, rsc CC=golang-dev http://codereview.appspot.com/167043 Committer: Russ Cox <rsc@golang.org>
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-12-04make Native Client support build again,Russ Cox1-0/+3
add README explaining how to try the web demos. Fixes issue 339. R=r CC=barry.d.silverman, bss, vadim http://codereview.appspot.com/165057
2009-12-03gc: check for assignment to private fields during initializationRuss Cox4-0/+55
R=ken2 http://codereview.appspot.com/165055
2009-12-03gc: handle _ = <-c in select.Russ Cox3-4/+22
Fixes issue 238. R=ken2 http://codereview.appspot.com/163098
2009-12-03gc: recursive type errorRuss Cox1-0/+10
Fixes issue 245. R=ken2 http://codereview.appspot.com/164094
2009-12-03gc: better diagnosis of initialization loopsRuss Cox1-0/+21
Fixes bug 292. R=ken2 http://codereview.appspot.com/164093
2009-12-03gc: minor import grammar bug fixesRuss Cox3-0/+14
Fixes issue 364. R=ken2 http://codereview.appspot.com/164092
2009-12-02gc: function argument ordering bugRuss Cox1-0/+38
Fixes issue 370. R=ken2 http://codereview.appspot.com/163097
2009-12-02move ReadFile, WriteFile, and ReadDir into a separate io/ioutil package.Rob Pike2-4/+4
this breaks the dependency of package io on package bytes. R=rsc CC=golang-dev http://codereview.appspot.com/163085
2009-11-30change command-line argument to beRoger Peppe2-9/+13
unnamed, not require -n, in line with other entries. R=rsc CC=r http://codereview.appspot.com/162061 Committer: Russ Cox <rsc@golang.org>
2009-11-30Make tests run on systems missing time utilitySergey 'SnakE' Gromov1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/164047 Committer: Russ Cox <rsc@golang.org>
2009-11-24gc: correct type check for x, ok map assignmentRuss Cox1-0/+14
Fixes issue 288. R=ken2 http://codereview.appspot.com/157162
2009-11-24timing log update for new version of chameneosRob Pike1-0/+8
R=rsc CC=golang-dev, rog http://codereview.appspot.com/160054
2009-11-24Change to container/vector interface:Robert Griesemer1-11/+11
- removed New(len int) in favor of new(Vector).Resize(len, cap) - removed Init(len int) in favor of Resize(len, cap) - runs all.bash Fixes issue 294. R=rsc, r, r1 http://codereview.appspot.com/157143
2009-11-24chameneosredux test modified, bug fixed, fasterRoger Peppe1-133/+106
based on suggestion from arvindht@gmail.com R=r, rsc, r1 http://codereview.appspot.com/157091 Committer: Russ Cox <rsc@golang.org>
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-1/+1
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w test/benchRuss Cox14-261/+255
except chameneosredux which i know is being edited require gofmt for test/bench R=r http://codereview.appspot.com/157110
2009-11-20x[y:] for stringsRuss Cox1-1/+1
R=ken2 http://codereview.appspot.com/157114
2009-11-20x[lo:] - gc and runtime.Russ Cox2-0/+16
* add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 http://codereview.appspot.com/157106
2009-11-20test/bench revisions;Russ Cox3-28/+46
* 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-19bug219: parsing difficulties with 6gRobert Griesemer2-0/+39
R=r, rsc http://codereview.appspot.com/157085
2009-11-18- flip in and out to exercise overlap check a little (could do better)Rob Pike1-25/+125
- actually test the results R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156094
2009-11-18test for copy()Rob Pike1-0/+193
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156084