Forum Home
Press F1
 
Thread ID: 98139 2009-03-13 01:43:00 Mass word generator ubergeek85 (131) Press F1
Post ID Timestamp Content User
755980 2009-03-15 21:03:00 I should be OK to compile it myself. Turns out that despite the fact that I have both Microsoft Visual Studio and Dev-c, neither of them complie straight C, only C++! Ah well, off to google I go.

Also, dyewitness, your one works pretty good, but seems to go on the go-slow, and sometimes locks up Firefox. Although I am generating 500000 strings!
ubergeek85 (131)
755981 2009-03-16 02:43:00 I should be OK to compile it myself. Turns out that despite the fact that I have both Microsoft Visual Studio and Dev-c, neither of them complie straight C, only C++! Ah well, off to google I go.

Also, dyewitness, your one works pretty good, but seems to go on the go-slow, and sometimes locks up Firefox. Although I am generating 500000 strings!

Aha, I didn't bother testing that sort of volume, only tried 5000.
Best off going for the compiled program then.
dyewitness (9398)
755982 2009-03-16 05:06:00 ...although I am generating 500000 strings!Just tested this quantity - it takes on average 0.215 seconds to generate an 8.2MB file containing 500,000 strings using the format string 'nlnlnlnlnlnlnlnl' (8 numbers, 8 letters). Further testing with larger quantities suggest that this will scale in a more or less linear fashion, provided your storage backend can keep up.

Test environment is Gentoo Linux, custom kernel 2.6.28-gentoo-r1-neith-1, compiled using gcc-4.3.3 with -O2, amd64 arch. No processor-specific optimisations. System is C2D E6550 (2.33GHz, 1333MHz FSB) running at stock speeds with 4GB DDR2-800 ram.

Test results:
steve@neith:~$ time strgen 500000 nlnlnlnlnlnlnlnl test.txt && ls -sh test.txt
Generating 500000 random strings...

real 0m0.243s
user 0m0.215s
sys 0m0.027s
8.2M test.txt
steve@neith:~$ time strgen 5000000 nlnlnlnlnlnlnlnl test.txt && ls -sh test.txt
Generating 5000000 random strings...

real 0m3.014s
user 0m2.215s
sys 0m0.265s
82M test.txt
steve@neith:~$ time strgen 50000000 nlnlnlnlnlnlnlnl test.txt && ls -sh test.txt
Generating 50000000 random strings...

real 0m25.259s
user 0m21.023s
sys 0m2.740s
812M test.txt
Erayd (23)
755983 2009-03-18 08:28:00 Man you guys fricken rock! What on earth is the random text in aid of?

Cheers
ADSL Geek
http://www.adslgeek.com
adslgeek (14687)
1 2 3