summaryrefslogtreecommitdiff
path: root/tests/compare/md5-v-sha1.php
blob: 74d0371970e39725abc13b66b2500e2ed4adc08b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php 

echo "test started... ";
ob_flush();

Benchmark::add_spot('100.000 x md5');
for($i = 0 ; $i<100000 ; $i++) $x = md5($i);


Benchmark::add_spot('100.000 x sha');
for($i = 0 ; $i<100000 ; $i++) $x = sha1($i);

Benchmark::add_spot('end');
echo(Benchmark::report(BENCH_REPORT_COMMENT));
echo "test completed!";

die();