Created
June 30, 2015 04:04
-
-
Save hackintoshrao/dfbef4bcb82587ef135f to your computer and use it in GitHub Desktop.
Benchmark for marshal.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 bench2 | |
import ( | |
"testing" | |
) | |
func BenchmarkMarshalMap(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
MarshalMap() | |
} | |
} | |
func BenchmarkMarshalStruct(b *testing.B) { | |
for i := 0; i < b.N; i++ { | |
MarshalStruct() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment