mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 02:40:45 +00:00
parent
b0c0e4c1bf
commit
27354ec059
1 changed files with 1 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ func BenchmarkPostConcurrent(b *testing.B) {
|
||||||
// for comparison
|
// for comparison
|
||||||
func BenchmarkChanSend(b *testing.B) {
|
func BenchmarkChanSend(b *testing.B) {
|
||||||
c := make(chan interface{})
|
c := make(chan interface{})
|
||||||
|
defer close(c)
|
||||||
closed := make(chan struct{})
|
closed := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
for range c {
|
for range c {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue