Created
February 9, 2017 00:36
-
-
Save nirasan/3d6ad5e08dbe950a112a892a54f303d0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 argumenter | |
import ( | |
"testing" | |
) | |
func BenchmarkValidReflect(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
m := MyArg{} | |
e := ValidReflect(m) | |
if e != nil { | |
//no op | |
} | |
} | |
} | |
func BenchmarkValidGenerate(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
m := MyArg{} | |
e := ValidGenerate(&m) | |
if e != nil { | |
//no op | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment