Skip to content

Instantly share code, notes, and snippets.

@hackintoshrao
Created June 23, 2015 10:26
Show Gist options
  • Save hackintoshrao/e59d8dc6005d554cf509 to your computer and use it in GitHub Desktop.
Save hackintoshrao/e59d8dc6005d554cf509 to your computer and use it in GitHub Desktop.
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