Investigating and Testing Performance Issues in Deep Learning Frameworks