Copy over already existing string performance tests into benchtests. Bits not related to performance measurements have been omitted.