Hacker News new | ask | show | jobs
by joe_adk 6059 days ago
Just for fun I removed the extra concat on the stringbuilder and upped the cycles to 20 and 20,000.

Running it several times showed that the 20 cycle loop was fairly close, where the 20,000 loop was not even near close.

    0.0000089 vs. 0.0000092
and

    0.9846729 vs. 0.0006852
Edit: I also changed them both to add a fixed string, since I don't have enough memory for a 4 * 2^20,000 length string.