Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: slow "native" performance with Mac OS X 10.14.1 and 10.12.6 #28739
Following a debug session with @fatih
What version of Go are you using (
Here's what I got from running the above script on a 13' macOS (seirra 10.12.6)
The same problem on my windows 10:
What version of Go are you using (go version)?
What operating system and processor architecture are you using (go env)?
I don't have an answer to why macOS 10.12 and 10.14 performance would be different, but I think I know why Docker and macOS are different.
As far as I understand, Docker on macOS actually runs a Linux kernel and userspace under a hypervisor. That means overhead for I/O and system calls is more similar to native Linux overhead than it is to macOS overhead. "go list" does a lot of
Here are the results from a quick benchmark I ran. The