topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 2:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

gabeeg

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
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, 12:11 PM by gabeeg »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Someone on DC recently created something that may meet your needs or come close enough that they would be willing to modify it:
https://www.donation...ex.php?topic=20979.0

gabeeg

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 2
    • View Profile
    • Donate to Member
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,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
this is definitely something suitable for a coding snack, so let's see if anyone volunteers to create it.