12 bits could take a minute on a browser. A few seconds on a native app and nuffin on a MacBook Pro
Discussion
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.
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.