File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 35
35
js-version : ['16']
36
36
r-version : ['4.1.2']
37
37
lua-version : ['2.0.5'] # Note: Not used as benchmark is broken.
38
- go-version : ['1.17.4'] # Note: Not used as benchmark is broken.
38
+ go-version : ['1.17.4']
39
39
40
40
steps :
41
41
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ benchmarks/fortran%.csv: bin/fperf%
87
87
88
88
benchmarks/go.csv : export GOPATH=$(abspath gopath)
89
89
benchmarks/go.csv : perf.go
90
- # CGO_LDFLAGS="-lopenblas $(LIBM)" go get github.com/gonum/blas/cgo
91
- go get github.com/gonum/blas/blas64
92
- go get github.com/gonum/ blas/cgo
93
- go get github.com/ gonum/matrix/mat64
94
- go get github.com /gonum/stat
90
+ go env -w GO111MODULE=off
91
+ export CGO_LDFLAGS= " -L ${LIBM} -lopenblas "
92
+ go get gonum.org/v1/netlib/ blas/netlib
93
+ go get gonum.org/v1/ gonum/mat
94
+ go get gonum.org/v1 /gonum/stat
95
95
@for t in $(ITERATIONS ) ; do go run $< ; done > $@
96
96
97
97
benchmarks/julia.csv : perf.jl
@@ -135,7 +135,7 @@ benchmarks/rust.csv: rust/src/main.rs rust/src/util.rs rust/Cargo.lock
135
135
@for t in $(ITERATIONS ) ; do cargo run --release -q; done > ../$@
136
136
137
137
LANGUAGES = c fortran go java javascript julia lua mathematica matlab octave python r rust
138
- GH_ACTION_LANGUAGES = c fortran java javascript julia python r rust
138
+ GH_ACTION_LANGUAGES = c fortran go java javascript julia python r rust
139
139
140
140
# These were formerly listed in LANGUAGES, but I can't get them to run
141
141
# 2017-09-27 johnfgibson
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ func main() {
234
234
235
235
func runBenchmarkFor (fn func (* testing.B )) (seconds float64 , err error ) {
236
236
bm := testing .Benchmark (fn )
237
- if (bm == testing. BenchmarkResult {} ) {
237
+ if (bm . N == 0 ) {
238
238
return 0 , errors .New ("failed" )
239
239
}
240
240
return bm .T .Seconds () / float64 (bm .N ), nil
You can’t perform that action at this time.
0 commit comments