remove "pure" binary marshal/unmarshal since it was always just an exercise.
This commit is contained in:
@@ -46,14 +46,6 @@ func BenchmarkBinaryEncoding(b *testing.B) {
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
b.Run("binary.MarshalBinary", func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, bevt := range binaryEvents {
|
||||
MarshalBinary(bevt)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func BenchmarkBinaryDecoding(b *testing.B) {
|
||||
@@ -105,18 +97,6 @@ func BenchmarkBinaryDecoding(b *testing.B) {
|
||||
}
|
||||
})
|
||||
|
||||
b.Run("binary.UnmarshalBinary", func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, bevt := range events {
|
||||
evt := &Event{}
|
||||
err := UnmarshalBinary(bevt, evt)
|
||||
if err != nil {
|
||||
b.Fatalf("failed to unmarshal: %s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
b.Run("easyjson.Unmarshal+sig", func(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
for _, nevt := range test_common.NormalEvents {
|
||||
|
||||
Reference in New Issue
Block a user