The RACE framework: Algorithm's four-stage performance engine