Generating tests with hundreds or thousands of characters gives an inaccurate indication of compatibility between browsers, because any browser that gets basics like string handling right will pass 90%+ tests. Just write a single test(), iterate over the characters in a loop. This is faster. The only downside is that only the first failure is reported, but this is acceptable.