aboutsummaryrefslogtreecommitdiff
path: root/test/bench
AgeCommit message (Collapse)Author
2019-03-06test/bench/go1: add go.mod fileBryan C. Mills
cmd/dist executes 'go test' within this directory, so it needs a go.mod file to tell the compiler what package path to use in diagnostic and debug information. Updates #30228 Change-Id: Ia313ac06bc0ec4631d415faa20c56cce2ac8dbc5 Reviewed-on: https://go-review.googlesource.com/c/go/+/165498 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-09-24test/bench/garbage: update Benchmarks Game URL to new pageJongmin Kim
The existing URL in comment points to an Alioth page which was deprecated (and not working), so use the new Benchmarks Game URL. Change-Id: Ifd694382a44a24c44acbed3fe1b17bca6dab998f Reviewed-on: https://go-review.googlesource.com/136835 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-03-22test/bench/go1: fix typo in parserdata_test.go commentJason Travis
Change-Id: Iaca02660bdc8262db2b003a94aca661b5cec5576 Reviewed-on: https://go-review.googlesource.com/38437 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-13test/bench/go1: reduce fasta data size for mips{,64}Vladimir Stefanovic
Change-Id: I15887ee454acfdb36334dd9f0b59cc520b2b0286 Reviewed-on: https://go-review.googlesource.com/34311 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-05-02all: make copyright headers consistent with one space after periodEmmanuel Odeke
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-04-29cmd/compile: Move divconst_test out of test/bench/go1David Chase
This is necessary to avoid disrupting the go1 suite and gives us a place to put other tests of basic compiler function and correctness. Change-Id: I36933819ff2bfe6a2121fff2be9a98efd2123d9a Reviewed-on: https://go-review.googlesource.com/22597 Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
2016-04-27cmd/compile: enable const division for arm64Zhongwei Yao
performance: benchmark old ns/op new ns/op delta BenchmarkDivconstI64-8 8.28 2.70 -67.39% BenchmarkDivconstU64-8 8.28 4.69 -43.36% BenchmarkDivconstI32-8 8.28 6.39 -22.83% BenchmarkDivconstU32-8 8.28 4.43 -46.50% BenchmarkDivconstI16-8 5.17 5.17 +0.00% BenchmarkDivconstU16-8 5.33 5.34 +0.19% BenchmarkDivconstI8-8 3.50 3.50 +0.00% BenchmarkDivconstU8-8 3.51 3.50 -0.28% Fixes #15382 Change-Id: Ibce7b28f0586d593b33c4d4ecc5d5e7e7c905d13 Reviewed-on: https://go-review.googlesource.com/22292 Reviewed-by: Michael Munday <munday@ca.ibm.com> Reviewed-by: David Chase <drchase@google.com>
2016-01-08encoding/base64: fix streaming decode of padding-free base64Russ Cox
Fixes #13384. Change-Id: Id9e827acddc8de139f93c5de0c6486bc4334c7d4 Reviewed-on: https://go-review.googlesource.com/18330 Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-01-06test/bench/shootout: deleteRuss Cox
We don't use these for benchmarking anymore. Now we have the go1 dir and the benchmarks subrepo. Some have problematic copyright notices, so move out of main repo. Preserved in golang.org/x/exp/shootout. Fixes #12688. Fixes #13584. Change-Id: Ic0b71191ca1a286d33d7813aca94bab1617a1c82 Reviewed-on: https://go-review.googlesource.com/18320 Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-07-31test/bench/shootout: fix buildMikio Hara
Change-Id: Ic8ff6c28ec899cf5e01553b83110eb6262870995 Reviewed-on: https://go-review.googlesource.com/12918 Reviewed-by: Russ Cox <rsc@golang.org>
2015-07-31test/bench/shootout: clean up binaries after runAndrew Gerrand
Update #11943 Change-Id: I3e6592876bf16d2f9129995b723ecf69c069653d Reviewed-on: https://go-review.googlesource.com/12913 Reviewed-by: Russ Cox <rsc@golang.org>
2015-05-21all: retire architecture letter in file names, public APIRuss Cox
This CL removes the remaining visible uses of the "architecture letter" concept. (They are no longer in tool names nor in source directory names.) Because the architecture letter concept is now gone, delete GOCHAR from "go env" output, and change go/build.ArchChar to return an error always. The architecture letter is still used in the compiler and linker sources as a clumsy architecture enumeration, but that use is not visible to Go users and can be cleaned up separately. Change-Id: I4d97a38f372003fb610c9c5241bea440d9dbeb8d Reviewed-on: https://go-review.googlesource.com/10289 Reviewed-by: Rob Pike <r@golang.org>
2015-05-21all: build and use go tool compile, go tool linkRuss Cox
This CL fixes the build to use the newly created go tool compile and go tool link in place of go tool 5g, go tool 5l, and so on. See golang-dev thread titled "go tool compile, etc" for background. Although it was not a primary motivation, this conversion does reduce the wall clock time and cpu time required for make.bash by about 10%. Change-Id: I79cbbdb676cab029db8aeefb99a53178ff55f98d Reviewed-on: https://go-review.googlesource.com/10288 Reviewed-by: Rob Pike <r@golang.org>
2014-09-08build: adjustments for move from src/pkg to srcRuss Cox
This CL adjusts code referring to src/pkg to refer to src. Immediately after submitting this CL, I will submit a change doing 'hg mv src/pkg/* src'. That change will be too large to review with Rietveld but will contain only the 'hg mv'. This CL will break the build. The followup 'hg mv' will fix it. For more about the move, see golang.org/s/go14nopkg. LGTM=r R=r CC=golang-codereviews https://golang.org/cl/134570043
2014-07-16cmd/gc: implement 'for range x {'Russ Cox
Fixes #6102. LGTM=gri R=ken, r, gri CC=golang-codereviews https://golang.org/cl/113120043
2014-05-09test/bench/shootout: support windowsChaiShushan
1. fix executable extension (a.out -> a.exe). 2. fix pthread build error on mingw 3. if depends lib messing, skip the test LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/100210043
2013-11-19test: revert unintentional commitsdvyukov
I thought I am in a different repo...
2013-11-19-dvyukov
2013-11-1913+dvyukov
2013-05-23test/bench/shootout/timing.log: update to Go 1.1Rob Pike
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/9656045
2013-03-12go/test/bench/go1: add regexp testRob Pike
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7480047
2013-03-12test/bench/go1: add http testBrad Fitzpatrick
R=golang-dev, r CC=golang-dev https://golang.org/cl/7529048
2013-03-12test/bench/garbage: fix parser benchmarkJan Ziak
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7762046
2013-03-11go/test/bench/go1: add printf and time format testsRob Pike
Also rename the go parser test to GoParse so it doesn't grab the globally useful Parse name. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7732044
2013-03-05test/bench/go1: use raw string instead of string additionShenghou Ma
to reduce compile time memory/stack usage. Update #4970 $ go test -c ../test/bench/go1 before: 0.36user 0.07system 0:00.44elapsed 100%CPU (0avgtext+0avgdata 540720maxresident)k 0inputs+19840outputs (0major+56451minor)pagefaults 0swaps after: 0.33user 0.05system 0:00.39elapsed 100%CPU (0avgtext+0avgdata 289936maxresident)k 0inputs+19864outputs (0major+29615minor)pagefaults 0swaps And stack usage is reduced to below 1MiB. R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/7436050
2013-03-04test/bench/garbage: fix parser benchmarkJan Ziak
R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/7435053
2012-10-07test/bench/shootout: match gcc architecture to GOARCHRuss Cox
If we're benchmarking 8g, use gcc -m32. If we're benchmarking 6g, use gcc -m64. R=golang-dev, bradfitz, minux.ma, remyoudompheng CC=golang-dev https://golang.org/cl/6625061
2012-09-25test/bench/shootout: new data after 64-bit ints for amd64Rob Pike
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6564046
2012-08-28test/bench/shootout: pidigits is much fasterRob Pike
Also fix a bug in the script (s/runonly/run/) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6501051
2012-06-24test/bench/shootout: remove dependency on C libraries in test modeJan Ziak
Fixes #3732. R=golang-dev CC=golang-dev https://golang.org/cl/6335053
2012-06-08test/bench/shoutout: fix compliationShenghou Ma
-lm must come after the source file, versions of gcc insist this strict order. On standard compliant systems, we no longer need malloc.h for malloc. Use pkg-config(1) to get correct glib cflags and libs. Fix compiler warning in threadring.c and k-nucleotide.c. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6198076
2012-06-07test/bench/go1: add go/parser benchmarkDave Cheney
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
2012-06-06test/bench/go1: reduce fasta data size for linux/armDave Cheney
As discussed on golang-dev, reduce the size of the fasta dataset to make it possible to run the go1 benchmarks on small ARM systems. Also, remove the 25m suffix from fasta data and Revcomp. linux/arm: pandaboard OMAP4 BenchmarkBinaryTree17 1 70892426000 ns/op BenchmarkFannkuch11 1 35712066000 ns/op BenchmarkGobDecode 10 137146000 ns/op 5.60 MB/s BenchmarkGobEncode 50 64953000 ns/op 11.82 MB/s BenchmarkGzip 1 5675690000 ns/op 3.42 MB/s BenchmarkGunzip 1 1207001000 ns/op 16.08 MB/s BenchmarkJSONEncode 5 860424800 ns/op 2.26 MB/s BenchmarkJSONDecode 1 3321839000 ns/op 0.58 MB/s BenchmarkMandelbrot200 50 45893560 ns/op BenchmarkRevcomp 10 135220300 ns/op 18.80 MB/s BenchmarkTemplate 1 6385681000 ns/op 0.30 MB/s R=rsc, minux.ma, dsymonds CC=golang-dev https://golang.org/cl/6278048
2012-06-05test/bench/go1: fix gzip testShenghou Ma
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
2012-05-30test/bench/shootout: more speedupsRob Pike
Most significant in mandelbrot, from avoiding MOVSD between registers, but there are others. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6258063
2012-05-30shootout: make mandelbrot.go more like mandelbrot.cRuss Cox
Surprise! The C code is using floating point values for its counters. Its off the critical path, but the Go code and C code are supposed to be as similar as possible to make comparisons meaningful. It doesn't have a significant effect. R=golang-dev, r CC=golang-dev https://golang.org/cl/6260058
2012-05-30test/bench/shootout/timing.log: mandelbrot is restoredRob Pike
R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/6259054
2012-05-30test/bench/go1: add mandelbrot for floating pointRuss Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6244063
2012-05-29test/bench/shootout/timing.log: update after recent compiler changesRob Pike
Moving panic out of line speeds up fannkuch almost a factor of two. Changes to bitwhacking code affect mandelbrot badly. R=golang-dev, bradfitz, rsc, r CC=golang-dev https://golang.org/cl/6258056
2012-05-07test/bench/shootout: fix gccgo binary-list-freelist testIan Lance Taylor
R=r CC=golang-dev https://golang.org/cl/6202046
2012-04-10test/bench/shootout: update timing.log to Go 1Rob Pike
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5989063
2012-04-05test/bench/garbage: fix parser benchmarkDmitriy Vyukov
+add standard bench output to tree2 +print GOMAXPROCS as go test does R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5992044
2012-03-08build: re-enable some broken tests in run.bashShenghou Ma
Updates #2982. R=rsc, rsc CC=golang-dev https://golang.org/cl/5759064
2012-03-07all: remove some references to Make.inc etc.Rob Pike
There are a few more but these are the easiest ones. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5756067
2012-02-24test/bench/shootout: update post-MakefileRob Pike
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5696054
2012-02-16test: use testlib (first 100)Russ Cox
X ,s;^// \$G (\$D/)?\$F\.go *$;// compile;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A *$;// build;g X ,s;^// \$G (\$D/)?\$F\.go && \$L \$F\.\$A && \./\$A\.out *$;// run;g X ,s;^// errchk \$G( -e)? (\$D/)?\$F\.go *$;// errorcheck;g R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5656082
2012-02-06runtime: delete UpdateMemStats, replace with ReadMemStats(&stats).Rémy Oudompheng
Unexports runtime.MemStats and rename MemStatsType to MemStats. The new accessor requires passing a pointer to a user-allocated MemStats structure. Fixes #2572. R=bradfitz, rsc, bradfitz, gustavo CC=golang-dev, remy https://golang.org/cl/5616072
2012-01-30go: move compilers into the go-tool directoryRob Pike
Also delete gotest, since it's messy to fix and slated for deletion anyway. A couple of things outside src can't be tested any more. "go test" will be fixed and these tests will be re-enabled. They're noisy for now. Fixes #284. R=rsc CC=golang-dev https://golang.org/cl/5598049
2012-01-10runtime: make garbage collector faster by deleting codeRuss Cox
Suggested by Sanjay Ghemawat. 5-20% faster depending on the benchmark. Add tree2 garbage benchmark. Update other garbage benchmarks to build again. R=golang-dev, r, adg CC=golang-dev https://golang.org/cl/5530074
2011-12-16various: use $GCFLAGS and $GCIMPORTS like Make doesMaxim Pimenov
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5489065