Channels are always going to be more expensive than using a lock if all your
doing is timing the cost of the lock vs a channel; aka hello world of channels.
Channels are there to send values between goroutines representing work to do,
in which case that work has to be significantly more than the cost of the
transmission otherwise it's easier to just do the work yourself.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.