Skip to content

Commit fc09e48

Browse files
Загрузить файлы в «/»
1 parent ca14ae1 commit fc09e48

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

compression-bz2.inc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* php test functions for compression by module bzip2
4+
* Php 4.4+
5+
*/
6+
7+
/** ---------------------------------- Tests functions -------------------------------------------- */
8+
9+
function test_36_bzip2_compress()
10+
{
11+
global $stringTest, $emptyResult, $testsLoopLimits, $totalOps, $stringTest;
12+
13+
if (!function_exists('bzcompress')) {
14+
return $emptyResult;
15+
}
16+
17+
$count = $testsLoopLimits['36_bzip2_compress'];
18+
$time_start = get_microtime();
19+
for ($i = 0; $i < $count; $i++) {
20+
$r = bzcompress($stringTest, 1);
21+
}
22+
$totalOps += $count;
23+
return format_result_test(get_microtime() - $time_start, $count, mymemory_usage());
24+
}
25+

0 commit comments

Comments
 (0)