Use algorithm 1 if microbenchmark fails (seems to be the case on solaris-sparc CRAN machines)