All checks were successful
* Add plugin option for protogen in Makefile * Fix the generator for the plugin in util/protogen * Erase convertable types, move helpful methods to gRPC protobufs * Erase helpers for convertations * Generate StableMarshlal/StableSize for protobufs by the protoc plugin Signed-off-by: Airat Arifullin a.arifullin@yadro.com
16 lines
285 B
Go
16 lines
285 B
Go
package object
|
|
|
|
import (
|
|
"testing"
|
|
|
|
objecttest "git.frostfs.info/TrueCloudLab/aarifullin/v2/object/test"
|
|
)
|
|
|
|
func BenchmarkObjectMarshal(b *testing.B) {
|
|
obj := objecttest.GenerateObject(false)
|
|
|
|
b.Run("marshal", func(b *testing.B) {
|
|
b.ReportAllocs()
|
|
obj.StableMarshal(nil)
|
|
})
|
|
}
|