Created
June 23, 2015 10:26
-
-
Save hackintoshrao/e59d8dc6005d554cf509 to your computer and use it in GitHub Desktop.
benchmark test for https://github.com/Karthic-Hackintosh/Codes-From-My-Blog-posts/blob/master/121/bench1/mapAndStructAdd.go
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 gobench | |
import ( | |
"testing" | |
) | |
func BenchmarkGoMapAdd(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
GoMapAdd() | |
} | |
} | |
func BenchmarkGoStructAdd(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
GoStructAdd() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment