Skip to content

Commit

Permalink
fair compare between channel and queue (both use interface{})
Browse files Browse the repository at this point in the history
  • Loading branch information
arnecls committed Mar 7, 2016
1 parent c291168 commit 6fc6eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsync/queue_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func BenchmarkQueuePush(b *testing.B) {

func BenchmarkChannelPush(b *testing.B) {
for i := 0; i < b.N; i++ {
q := make(chan int, 100000)
q := make(chan interface{}, 100000)
for c := 0; c < 100000; c++ {
q <- 123
}
Expand Down

0 comments on commit 6fc6eea

Please sign in to comment.