benchmarks icon indicating copy to clipboard operation
benchmarks copied to clipboard

Add Go benchmark

Open mavam opened this issue 13 years ago • 1 comments

Go qualifies as another benchmark candidate: Goroutines are the equivalent of actors. They become non-blocking when used with buffered channels (though only until the buffer is full). Pattern matching occurs with the switch statement on a value read from a channel:

val := <- someChannel
switch val.(type) {
      case int: // some code
      case float32: // some code
}

mavam avatar Nov 08 '12 16:11 mavam

Related: https://github.com/Neverlord/cppa-benchmarks/pull/5

ivaxer avatar Jan 28 '13 08:01 ivaxer