Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4156024

Browse files
committed
очищаем пока не дойдем до $stringConcatLoopRepeat
1 parent ad7f649 commit 4156024

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎bench.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,9 @@ function test_02_String_Concat()
625625
for ($i = 0; $i < $count; ++$i) {
626626
$s .= '- Valar dohaeris' . PHP_EOL;
627627
}
628+
if ($r + 1 < $stringConcatLoopRepeat) {
629+
$s = '';
630+
}
628631
}
629632
return format_result_test(get_microtime() - $time_start, $count*$stringConcatLoopRepeat, memory_get_usage(true));
630633
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /