performance test for opendir