Benchmarks results as below:
mt_rand() 10000000 times for 4.7026278972626 seconds each one average is 0.00000047 seconds rand() 10000000 times for 4.7438910007477 seconds each one average is 0.00000047 seconds
The test machine is Amazon EC2 High-CPU Instances (20 ECU)
Another test as below:
mt_rand() 10000000 times for 2.4974269866943 seconds each one average is 0.00000025 seconds rand() 10000000 times for 2.4646849632263 seconds each one average is 0.00000025 seconds
The test machine is Amazon EC2 Micro Instances (1 ECU)
No comments:
Post a Comment