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.
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.