smallnest / go-web-framework-benchmark

:zap: Go web framework benchmark
Apache License 2.0
2.08k stars 226 forks source link

missing dependencies #82

Closed bnkamalesh closed 3 years ago

bnkamalesh commented 4 years ago

Forked this repository and tried running. Following is the output

../go-web-framework-benchmark$ go build -o gowebfmbench
# github.com/cloudfoundry/gosigar
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/concrete_sigar.go:20:11: cpuUsage.Get undefined (type Cpu has no field or method Get)
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/concrete_sigar.go:30:13: cpuUsage.Get undefined (type Cpu has no field or method Get)
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/concrete_sigar.go:49:10: l.Get undefined (type LoadAverage has no field or method Get)
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/concrete_sigar.go:55:10: m.Get undefined (type Mem has no field or method Get)
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/concrete_sigar.go:61:10: s.Get undefined (type Swap has no field or method Get)
../../../../pkg/mod/github.com/cloudfoundry/gosigar@v1.1.0/sigar_shared.go:12:20: procTime.Get undefined (type *ProcTime has no field or method Get)

Go env

$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/kamaleshwar/Library/Caches/go-build"
GOENV="/Users/kamaleshwar/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOOS="darwin"
GOPATH="/Users/kamaleshwar/go"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="0"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lv/0wsxrb6123s8slgb2lp_6_3m0000gp/T/go-build461564637=/tmp/go-build -gno-record-gcc-switches -fno-common"
bnkamalesh commented 3 years ago

hey @smallnest any help on this or are you planning a rerun any time soon? The results are 9+ months old! 😄

smallnest commented 3 years ago

First, I have no the problem about gosigar: image

you should check your go env or the lib:

image

Second question: Currently I have not available high performant server to test. Welcome pull requests for the benchmark