moved perf tests to common.c, run them plain, plain/thread, and crypto