Minor improvements

added speed test for debugging