DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: program to create specified number of files of a specified size, but random data  (Read 5,543 times)

gabeeg

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2
Hello,

  I am looking for a quick and dirty program with a easy UI, that I will do all of the following:

1.  Create a specified number of files.
2.  Create the files of a specified size (10kb, 6mb, 10gb, or whatever the user chooses).
3.  Create files of a certain type (text, numeric, and especially binary data to simulate program files).
4.  Contents of each file must be random (of the selected type).

We are doing some performance evaluations with a program that does de-duplication and compression....we need various sizes, numbers and types of random data to make sure we are not seeing performance skewed to the high side due to de-dupe or compression.   If we just had 1000 1GB text files all with the same text...de dupe and compression would make the app look ridiculously and unrealisticly fast :).   We have found apps and scripts that do one or two of the above, but nothing to do all four!

Thanks!

« Last Edit: January 21, 2010, 06:11 PM by gabeeg »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Someone on DC recently created something that may meet your needs or come close enough that they would be willing to modify it:
http://www.donationcoder.com/forum/index.php?topic=20979.0

gabeeg

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2
Yep, I looked at that one.  It is missing the random data types (looks to be limited to alpha-numeric) and the ability to randomize the data in the files created.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
this is definitely something suitable for a coding snack, so let's see if anyone volunteers to create it.

Original address: https://www.donationcoder.com/forum/index.php?topic=21446.0