News for hackers. Stuff that matters.
Re:Go concurrency isn't parallelism: Real world lessons with... by Twirrim on Saturday February 07, 2015 @02:15PM (#9014980)
It does indeed catch it

  $ go test -race -bench=.
  
  ...
  
  WARNING: DATA RACE
  Write by goroutine 4:
    sync.raceWrite()
        /usr/lib/go/src/pkg/sync/race.go:41 +0x35
    sync.(*WaitGroup).Wait()
        /usr/lib/go/src/pkg/sync/waitgroup.go:120 +0x16d
    _/home/twirrim/monte.GetPiMulti()
        /home/twirrim/monte/monte.go:56 +0x23a
    _/home/twirrim/monte.BenchmarkGetPiMulti()
        /home/twirrim/monte/monte_test.go:17 +0x62
    testing.(*B).runN()
        /usr/lib/go/src/pkg/testing/benchmark.go:119 +0xc0
    testing.(*B).launch()
        /usr/lib/go/src/pkg/testing/benchmark.go:207 +0x1ba
  
  ...
And so on.

There are no comments on this comment yet.