Cleanup around asserts, add performance test for anythreads