Commit Graph

8 Commits

Author SHA1 Message Date
Vladimir Chalupecky
daa0b08d52 asm: add generation of DaxpyUnitary and DaxpyUnitaryTo 2015-12-22 14:56:51 +09:00
Vladimir Chalupecky
a8311f7c96 asm: add DaxpyIncTo 2015-12-15 11:24:33 +09:00
Vladimir Chalupecky
eb82b49185 asm: rename DaxpyUnitary to DaxpyUnitaryTo 2015-12-15 10:49:16 +09:00
kortschak
266f56a1bd asm: add appengine build tags
Fixes github.com/gonum/matrix#202.
2015-08-31 15:28:52 +09:30
kortschak
b5fa43ce0f Make generated single precision drop-ins
If single precision asm versions are needed the generate script will
need to be modified. This change allows code generated single precision
BLAS routines to be easier to make.
2015-02-08 12:01:14 +10:30
Fazlul Shahriar
aef7b8ecab change DaxpyUnitary to take a destination parameter
No significant difference in the benchmark.

Benchmark using noasm tag:

benchmark                           old ns/op     new ns/op     delta
BenchmarkDaxpySmallBothUnitary      28.6          25.0          -12.59%
BenchmarkDaxpyMediumBothUnitary     1367          1360          -0.51%
BenchmarkDaxpyLargeBothUnitary      139217        138521        -0.50%
BenchmarkDaxpyHugeBothUnitary       16451616      16243873      -1.26%

Benchmask using amd64 assembly:

benchmark                           old ns/op     new ns/op     delta
BenchmarkDaxpySmallBothUnitary      17.7          17.4          -1.69%
BenchmarkDaxpyMediumBothUnitary     363           363           +0.00%
BenchmarkDaxpyLargeBothUnitary      72119         72107         -0.02%
BenchmarkDaxpyHugeBothUnitary       12826300      12817173      -0.07%

All benchmark done using Go 1.4 on Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz.
Best of 3 runs.
2015-01-11 18:15:30 -05:00
kortschak
5d1c97461a Add noasm build tag
This allows easy benchmarking against the pure pure Go implementation
and also provides a way to easily assess compiler improvements.

e.g.

	$ cd $GOPATH/src/github.com/gonum/blas/native
	$ go test -bench . > asm.txt
	$ go test -tags noasm -bench . > noasm.txt
	$ benchcmp noasm.txt asm.txt
2015-01-12 08:43:07 +10:30
btracey
88239e7ca5 Add daxpy routines 2015-01-10 22:27:44 -08:00