Replying to Avatar کیهان

goos: linux

goarch: amd64

pkg: github.com/nbd-wtf/go-nostr

cpu: 12th Gen Intel(R) Core(TM) i3-12100F

BenchmarkParseMessage

BenchmarkParseMessage/golang

BenchmarkParseMessage/golang-8 162 6665196 ns/op

BenchmarkParseMessage/simdjson

BenchmarkParseMessage/simdjson-8 28 43713545 ns/op

PASS

ok github.com/nbd-wtf/go-nostr 3.138s

i was not aware of simdjson on go...

but it seems its for 2 years ago. forking it? you do it or i can go for it?

also, these stuff like simdjson and linsecp245k1 in golang has a lot of overhead, what is your opinion?

Avatar
fiatjaf 10mo ago

No one has posted a MacOS benchmark here, but apparenly on arm64 it is truly much faster than the alternatives, I don't understand why but maybe the library is broken for amd64, or my code is broken, but then it would be weird.

Reply to this note

Please Login to reply.

Discussion

Avatar
کیهان 10mo ago

did you check simd support on amd64?

Thread collapsed