We can do 43,000 id hash check + schnorr verifications a second on the CPU (all threads, blocking everything else) of a Pixel 8. Can you do it faster? Amethyst receives on average 7000 events per second from 13 relays relays on WiFi. The startup collection is about 63,000 events for my user. If the number of relays increase, we see even more.
Oh, 43k per second is already fast. I am also trying to optimize this. My current approach is to minimize validation actions. I will cache the event ID, and if the same ID and signature appear, the signature validation will not be performed again. Additionally, I will try to fetch the events at the most appropriate time, avoiding fetching multiple events at the same time as much as possible.