CPU speed and php script execution time

justforkicks1

Prominent
Apr 8, 2017
2
0
510
0
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
0


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?

 
Thread starter Similar threads Forum Replies Date
Satish Patro Laptop General Discussion 1
Karan666 Laptop General Discussion 1
M Laptop General Discussion 0
H Laptop General Discussion 1
Voodoo12302 Laptop General Discussion 1
Y Laptop General Discussion 5
C Laptop General Discussion 0
C Laptop General Discussion 1
B Laptop General Discussion 1
D Laptop General Discussion 2
A Laptop General Discussion 1
R Laptop General Discussion 1
A Laptop General Discussion 4
D Laptop General Discussion 3
D Laptop General Discussion 3
O Laptop General Discussion 0
I Laptop General Discussion 4
R Laptop General Discussion 5
D Laptop General Discussion 5
S Laptop General Discussion 4

Similar threads


ASK THE COMMUNITY