So in my ever expanding curiosity (yes I know it's damn near impossible but I like the challange of scripting new things) I have re-written a few different scripts in PHP-CLI to make calls to vanitygen to generate addresses/privatekeys and check them against an array loaded with keys/balances.
The program currently uses about 450MB of memory per instance of it running and its checking it against a subset of ~1.3 million addresses or so. I did notice that when making the call out to generate a key I was getting about 0.15 secs/key generated using the options in the code box below and the amount of time to actually check the address against the database was so fast the php function microtime was not able to determine the time. I decided to go ahead and instead of calling vanity gen over and over to generate 1 address at a time I would start up vanity gen in one command prompt using options in code box 2 and run the checking script against the output file instead. Now the problem is that the cpu vanity gen only generates about 240 Kkeys/s on my CPU and the PHP script checks 50,000 addresses in less than 2 seconds.
So I decided I would try OCLvanitygen to generate addresses even faster since my GT440 generates around 2.70 Mkeys/s but I'm having an issue with oclvanitygen that maybe one of you might have some insight into. I have noticed when running OCLvanitygen under -q it will list its generating 2.7 Mkey/s but with the prefix set at "1" it states that its finding 1 or 2 keys per second (output in code box 3). Any idea how to get OCLVanitygen to output all 2.7Mkey/s to the output file?
(PS- the reason for the regex is because 93.94% of bitcoin addresses with a balance greater than 0 are between the prefix 121 and 1Pz which cuts down on the total amount of variables to try and check against my keys script.)
vanitygen.exe -q -t 4 -r -k 1[A-P2-9]
vanitygen.exe -q -t 4 -r -k -o generated.txt 1[A-P2-9]
D:\>vanitygenlib.exe -q -t 4 -r -k -o generated.txt 1
[131.34 Kkey/s][total 699554][Found 2827]
D:\>oclvanitygen.exe -q -k -d 0:0 -o generated.txt 1
[1.36 Mkey/s][total 20971520][Found 5]