Skip to content

Commit

Permalink
remove "pure" binary marshal/unmarshal since it was always just an ex…
Browse files Browse the repository at this point in the history
…ercise.
  • Loading branch information
fiatjaf committed Sep 8, 2024
1 parent 2016f11 commit 6ebdf9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 103 deletions.
83 changes: 0 additions & 83 deletions binary/binary.go

This file was deleted.

20 changes: 0 additions & 20 deletions binary/binary_bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6ebdf9c

Please sign in to comment.