This is actually not generating a 10M string. It should be 1024*10000 to generate something close to 10M.
I changed it locally it going to merge it to master with this PR.