Skip to content

Instantly share code, notes, and snippets.

@nise-nabe
Created March 23, 2014 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nise-nabe/9719912 to your computer and use it in GitHub Desktop.
Save nise-nabe/9719912 to your computer and use it in GitHub Desktop.
package main
import (
"runtime"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main () {
for i := 0; i < 10000; i++ {
m := make(map[int]int)
for j := 0; j < 10000; j++ {
if _, exist := m[j]; !exist {
m[j] = i
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment