benchmark: better analysis and autodetection