CPU speed and php script execution time

Status
Not open for further replies.

justforkicks1

Prominent
Apr 8, 2017
2
0
510
Moving PHP script from 2.7 to 2.8 ghz dual core i7 mac book pro, reduced execution time of php script by 1.5 hrs down from 20 hr total time. Would an alienware 4.4 ghz dual core i7 decrease execution time of php script at least 14 hrs? Or do the speed ratios not work that way?
 

justforkicks1

Prominent
Apr 8, 2017
2
0
510


Yes! It is a php script that has a lot of calls to the php rand() function. rand() is notoriously slow. I need to pick millions of random serial numbers. I have tried array_rand, shuffle and math_rand() and those are even slower than rand(). Do you know of a method by which I could pick random numbers that is faster than php rand()? Maybe I could pick them in javascript then pass to php?

 
Status
Not open for further replies.