What is Nostr?
digitalbase / Gijs Nelissen
npub132n…8cn4
2024-12-29 21:32:50

digitalbase on Nostr: I learn the most by reading and playing with code. So after reading NIP01 i wanted to ...

I learn the most by reading and playing with code. So after reading NIP01 i wanted to play with the tests fiatjaf (npub180c…h6w6) wrote in the nostr-tools (TS) repo.

Ported some tests to Bun (v2) and saw a 2x speed in signing/verifying events (obviously all related to runtime improvements) (screenshot below)

No plans to continue writing these tests. What's the point of optimising a test suite that takes 7 seconds to run 280 tests outside of `deno fmt` (which is awesome). But i do wonder if the current relay implementations in Typescript (nostream, nostr-relay-nestjs) will have to deal with performance as Nostr gets more popular.

Author Public Key
npub132ns73pnz2w6mdcnxzkgna3t2dx25gq2nulwxjdq7jj4jvrn6xnqup8cn4