Skip to content

Instantly share code, notes, and snippets.

@hkwi
Created July 15, 2014 01:42
Show Gist options
  • Save hkwi/4703094d4bca99699bbe to your computer and use it in GitHub Desktop.
Save hkwi/4703094d4bca99699bbe to your computer and use it in GitHub Desktop.
go performs badly on windows (gc)
package main
func main(){
buf := make([]byte, 10000)
length := len(buf)
for i:=0; i<100000; i++ {
for j:=0; j<100000; j++ {
buf[(i+j)%length] = buf[j%length]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment