note 121378 deleted from function.md5 by peehaa

From: Date: Sun, 28 Apr 2019 10:54:10 +0000
Subject: note 121378 deleted from function.md5 by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210834@lists.php.net to get a copy of this message
Note Submitter: Some ONE ---- speed of hash('md5',) VS md5() 2017-07-14, on a i7-3540M CPU @ 3.00GHz, md5() is slightly quicker than hash('md5',) This code takes 2.29 seconds <?php for($i=0;$i<10000000;++$i) md5("$i"); ?> while this one takes 2.77 seconds <?php for($i=0;$i<10000000;++$i) hash('md5',"$i"); ?> But in average, less than half a second for 10 000 000 repetitions is a very minimal advantage.

« previous php.notes (#210834) next »