I'm looking for fastest way to generate fake files for stress test where is a possibility to pass file size. Currently I'm using simple
with open("{}".format(i), 'wb') as f: f.write(os.urandom(FILE_SIZE))
but for my case, creating each file takes too long. It seems to me that the Faker library does not have the method to generate fake files
EDIT: The code below is just a part of whole script so any CMD/OS commands are not a solution for my problem.