Приглашаю в сообщество сайта на ЖЖшной площадке
Мой основной акк
Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is easy for a developer to learn and use. Ultimate control of images is left to the developer, so unnecessary conversions, etc. are not performed. DevIL utilizes a simple, yet powerful, syntax. DevIL can load, save, convert, manipulate, filter and display a wide variety of image formats.
$aqwertyuiop='1234567';
$bqwertyuiop_134='qwer';
$cqwertyuiop='uyoiiuorutyr try wre';
$dqwertyuiop='csv dsfg fdg f';
$eqwertyuiop_dfsd='fsg fdsgdfsgsfdg';
$fqwertyuiop='12fgsd345df sd67';
$gqwertyuiop='12345 sfgsdfg fdg67';
$hqwertyuiop='12345fg sdffd67';
$ttr=200000;
$ts = microtime(true);
for($k=0; $k<$ttr; ++$k){
$res = "This $aqwertyuiop is $bqwertyuiop_134 the $cqwertyuiop result $dqwertyuiop number $k of
$ttr pass, $eqwertyuiop_dfsd running $fqwertyuiop with $gqwertyuiop single $hqwertyuiop quotes";
}
$dqtime = microtime(true)-$ts;
echo 'Double qoutes performance '.$dqtime.' sec<br/>';
$ts = microtime(true);
for($k=0; $k<$ttr; ++$k){
$res = 'This '.$aqwertyuiop.' is '.$bqwertyuiop_134.' the '.$cqwertyuiop.' result '.$dqwertyuiop.' number '.$k.' of '.
$ttr.' pass, '.$eqwertyuiop_dfsd.' running '.$fqwertyuiop.' with '.$gqwertyuiop.' single '.$hqwertyuiop.' quotes';
}
$sqtime = microtime(true)-$ts;
echo 'Single qoutes performance '.$sqtime.' sec<br/>';
$max = max(array($dqtime,$sqtime));
$min = min(array($sqtime,$dqtime));
echo 'delta is '.(($max-$min)*100/$min).' percents.<br/>'.($min == $sqtime ? 'Single' : 'DOUBLE!').' quotes is faster!';
![]() | You are viewing Log in Create a LiveJournal Account Learn more |
Загляните в Журнал путешествий