Miles to Go: Golang for Competitive Programming?
summary
Compares concrete trade-offs: uses the Go testing package to implement a benchmark harness (main_test.go) for LeetCode 350 (array intersection), generates inputs sized from 1 to 1,000,000 with 20% intersection, runs at least 10 iterations per case and measures iterations, average time, and allocations with go test benchmark and benchstat comparisons. Finds platform/compiler support spotty, standard library lacks DSA helpers, and the 1,000,000-case shows the previously fastest approach becomes about 25% slower.
AI-written summary · about








