add decoding speed test function