View Single Post
  #151  
Old 01-07-2007, 12:09 AM
Steve Brecher Steve Brecher is offline
Member
 
Join Date: Sep 2004
Posts: 45
Default Re: 7 Card Hand Evaluators

I modified RayW's TestHandRank.cpp to do either random hands or enumeration, each with any of three evaluators.

LOOKUP is the mykey1961 big-table evaluator as implemented by RayW; HANDEVAL is mine; EVALN is the pokersource Eval_N.

RANDOM1M is 1,000,000 random hands; ENUMERATE is all 52c7 hands.

For each evaluator/test, the best of three consecutive runs:

LOOKUP/RANDOM1M:
HighPrecision clocks per lookup = 1977.461472

HANDEVAL/RANDOM1M:
HighPrecision clocks per lookup = 112.314720

EVALN/RANDOM1M:
HighPrecision clocks per lookup = 91.655640

LOOKUP/ENUMERATE:
HighPrecision clocks per lookup = 16.126806

HANDEVAL/ENUMERATE:
HighPrecision clocks per lookup = 79.533031

EVALN/ENUMERATE:
HighPrecision clocks per lookup = 81.567737

The source code is at
http://www.stevebrecher.com/misc/TestHandRank.cpp
Reply With Quote