Skip to content

Commit

Permalink
Merge pull request #68 from lesismal/poolopt
Browse files Browse the repository at this point in the history
- build
  • Loading branch information
lesismal authored Jul 19, 2021
2 parents 666c285 + e4c9c4c commit ff160bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/websocket_1m/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
<-ticker.C
n := atomic.SwapUint64(&qps, 0)
total += n
_, _, _, _, s := mempool.State()
_, _, s := mempool.State()
fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s)
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/websocket_1m_tls/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func main() {
<-ticker.C
n := atomic.SwapUint64(&qps, 0)
total += n
_, _, _, _, s := mempool.State()
_, _, s := mempool.State()
fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s)
}
}
Expand Down
4 changes: 1 addition & 3 deletions examples/websocket_1m_tls/server_std/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"time"

"github.com/gorilla/websocket"
"github.com/lesismal/nbio/mempool"
)

var (
Expand Down Expand Up @@ -67,8 +66,7 @@ func main() {
<-ticker.C
n := atomic.SwapUint64(&qps, 0)
total += n
_, _, _, _, s := mempool.State()
fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n%v\n", i, runtime.NumGoroutine(), n, total, s)
fmt.Printf("running for %v seconds, NumGoroutine: %v, qps: %v, total: %v\n--------------------------------\n", i, runtime.NumGoroutine(), n, total)
}
}

Expand Down

0 comments on commit ff160bf

Please sign in to comment.