Replying to Avatar ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ

also, the bug was slowing down the encoder... this is now typical results

goos: linux

goarch: amd64

pkg: mleku.net/nostrbench

cpu: AMD Ryzen 5 PRO 4650G with Radeon Graphics

BenchmarkBinaryEncoding/event2.MarshalJSON-12 14 74456910 ns/op

BenchmarkBinaryEncoding/event2.EventToBinary-12 172 6911613 ns/op

BenchmarkBinaryEncoding/easyjson.Marshal-12 63 18776462 ns/op

BenchmarkBinaryEncoding/gob.Encode-12 19 62966594 ns/op

BenchmarkBinaryEncoding/binary.Marshal-12 9 118801192 ns/op

BenchmarkBinaryDecoding/event2.UnmarshalJSON-12 14 88550098 ns/op

BenchmarkBinaryDecoding/event2.BinaryToEvent-12 100 12272410 ns/op

BenchmarkBinaryDecoding/easyjson.Unmarshal-12 58 23138193 ns/op

BenchmarkBinaryDecoding/gob.Decode-12 5 227175445 ns/op

BenchmarkBinaryDecoding/binary.Unmarshal-12 126 8782942 ns/op

i'm still puzzled why the BinaryToEvent is unaffected though... gonna get to it yet, for now, all is well with the world, my relay is actually finding events and sending them back

Avatar
ᴛʜᴇ ᴅᴇᴀᴛʜ ᴏꜰ ᴍʟᴇᴋᴜ 1y ago

actually, no, i only fixed one case, looks like the pubkeys are broken

Reply to this note

Please Login to reply.

Discussion

No replies yet.