Are there benchmarks for the time it takes to do PoW?

I ask because it sounds like you’re saying that the same level of difficulty would be a negligible delay for a bot on a fast server, but take an unacceptably long time for a human using a web browser.

In that case bots will have an advantage over many real users.

Reply to this note

Please Login to reply.

Discussion

True, but two things.

1. WASM helps with that in the browser

2. It still takes a moment natively. If you’re trying to send out hundreds of events a second it’ll make that impossible

#[2]​ had said ā€œtakes a minuteā€. I didn’t know whether he meant a literal 60 seconds or he meant ā€œtakes a brief momentā€. If it’s the latter it’s no big deal.

I’d still love to see benchmarks though.

12 bits took a little less than a minute using unoptimized JS code.

Sample code: https://observablehq.com/@jb55/nostr-playground

This is just a sample algorithm not where the benchmark should be conducted.