jcrd / tidepool

A digital evolution system and library
MIT License
0 stars 0 forks source link

Fix benchmark #2

Closed jcrd closed 3 years ago

jcrd commented 3 years ago

As of commit d07dd214485d8fc331bcb5930fe51df000d58e69, this is the result:

go test ./tidepool -bench=.
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive]:
testing.(*B).run1(0xc00011c240, 0xc00011c240)
    /usr/lib/golang/src/testing/benchmark.go:233 +0xa5
testing.(*B).Run(0xc00011c000, 0x56c85b, 0x19, 0x572fd0, 0x4cfe00)
    /usr/lib/golang/src/testing/benchmark.go:656 +0x373
testing.runBenchmarks.func1(0xc00011c000)
    /usr/lib/golang/src/testing/benchmark.go:533 +0x78
testing.(*B).runN(0xc00011c000, 0x1)
    /usr/lib/golang/src/testing/benchmark.go:191 +0xeb
testing.runBenchmarks(0x56abd5, 0x11, 0xc00000c0a0, 0x651b20, 0x1, 0x1, 0x659ee0)
    /usr/lib/golang/src/testing/benchmark.go:542 +0x3d1
testing.(*M).Run(0xc00010a000, 0x0)
    /usr/lib/golang/src/testing/testing.go:1351 +0x51d
main.main()
    _testmain.go:43 +0x138

goroutine 18 [chan receive]:
tidepool/tidepool.BenchmarkJSONMarshalCells(0xc00011c240)
    /home/james/code/go/src/tidepool/tidepool/env_test.go:42 +0x2cb
testing.(*B).runN(0xc00011c240, 0x1)
    /usr/lib/golang/src/testing/benchmark.go:191 +0xeb
testing.(*B).run1.func1(0xc00011c240)
    /usr/lib/golang/src/testing/benchmark.go:231 +0x57
created by testing.(*B).run1
    /usr/lib/golang/src/testing/benchmark.go:224 +0x7f

goroutine 19 [chan send]:
tidepool/tidepool.BenchmarkJSONMarshalCells.func1(0xc00010e140, 0xc00005e1e0, 0xc000010360)
    /home/james/code/go/src/tidepool/tidepool/env_test.go:34 +0x7f
created by tidepool/tidepool.BenchmarkJSONMarshalCells
    /home/james/code/go/src/tidepool/tidepool/env_test.go:33 +0x2aa
exit status 2
FAIL    tidepool/tidepool   0.030s
FAIL