Just a general performance question. Is 1-7 seconds a good build time for a program that builds a poker hand, sorts a poker hand, analyzes and then returns every poker hand type such as straight, flushes etc. etc?
I am generating a hand until it returns a hand type, in the process i sort it from lowest to highest rank. I am doing this for every poker hand type. so you can imagine to generate a royal flush and straight flush, it has to generate thousands of hands before striking.
How do I know that the time it is taking to do the analysis is reasonable?