Everybody talks about how fast Go compiles and runs compared to, say, Java. What you don’t hear as much about is how fast tests run. I’ve got a test standing up a mock HTTP server, running some requests against it, checking responses, unmarshaling JSON, etc.

5 milliseconds

I might be speaking too soon, because my reference is ~30s to run a full build and test with Maven, whereas 5ms in Go is just the test. So not an apples-to-apples comparison.

Show thread

Just timed a full build-and-test in Go at .95s. I’ll need to re-implement this in Java anyway, so I’ll be curious to see what the time run returns there.

Show thread
Sign in to participate in the conversation

A private Mastodon instance