improve performance of reverse string by doing a speed test prior to the bindings