add benchmarks.

This commit is contained in:
fiatjaf
2023-07-05 13:48:14 -03:00
parent 7ba3844a6f
commit cfdfba3bdd
2 changed files with 87 additions and 2 deletions

View File

@@ -105,7 +105,7 @@ func Unmarshal(data string, evt *nostr.Event) (err error) {
return err
}
func Marshal(evt nostr.Event) (string, error) {
func Marshal(evt *nostr.Event) (string, error) {
// start building the nson descriptors (without the first byte that represents the nson size)
nsonBuf := make([]byte, 256)