Created
July 15, 2014 01:42
-
-
Save hkwi/4703094d4bca99699bbe to your computer and use it in GitHub Desktop.
go performs badly on windows (gc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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