Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inbound_services:
- - warmup
- <?php
- $starttime = microtime(true);
- echo "Starts performing.<br>";
- for ($i = 1; $i <= 1000000; $i++) {
- $test = md5($i);
- $test2 = hash("sha512", $test);
- $newstring = $test . "-" . $test2;
- $test3 = hash("sha512", $newstring);
- $newstring2 = $newstring . "-" . $test3;
- $test4 = hash("sha512", $newstring2);
- }
- echo "Done performing.";
- echo "<hr>";
- $diff = microtime(true) - $starttime;
- $sec = intval($diff);
- $micro = $diff - $sec;
- $final = strftime('%T', mktime(0, 0, $sec)) . str_replace('0.', '.', sprintf('%.3f', $micro));
- echo "Execution time total: $final";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement