com php-src: fix test filename and title: Zend/tests/concat_ 003.phpt Zend/tests/implode_small_strings.phpt
| From: | Anatol Belski | Date: | Wed, 11 Nov 2015 08:47:24 +0000 |
| Subject: | com php-src: fix test filename and title: Zend/tests/concat_ 003.phpt Zend/tests/implode_small_strings.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89749@lists.php.net to get a copy of this message | ||
Commit: 3cdc438e53c3c5dccd4ca2b7ce8e1e98cf873a34
Author: Anatol Belski <ab@php.net> Tue, 10 Nov 2015 11:01:53 +0100
Parents: 1f39665083cae00bb699c9b1eaca92f665d5ef2c
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3cdc438e53c3c5dccd4ca2b7ce8e1e98cf873a34
Log:
fix test filename and title
Changed paths:
A Zend/tests/concat_003.phpt
D Zend/tests/implode_small_strings.phpt
Diff:
diff --git a/Zend/tests/concat_003.phpt b/Zend/tests/concat_003.phpt
new file mode 100644
index 0000000..e8d161b
--- /dev/null
+++ b/Zend/tests/concat_003.phpt
@@ -0,0 +1,50 @@
+--TEST--
+Concatenating many small strings should not slowdown allocations
+--INI--
+memory_limit=256m
+--FILE--
+<?php
+
+/* To note is that memory usage can vary depending on whether opcache is on. The actual
+ measuring that matters is timing here. */
+
+$time = microtime(TRUE);
+
+/* This might vary on Linux/Windows, so the worst case and also count in slow machines. */
+$t0_max = 0.1;
+$t1_max = 0.5;
+
+$datas = [];
+for ($i = 0; $i < 220000; $i++)
+{
+ $datas[] = [
+ '000.000.000.000',
+ '000.255.255.255',
+ '保留地址',
+ '保留地址',
+ '保留地址',
+ '保留地址',
+ '保留地址',
+ '保留地址',
+ ];
+}
+
+$t0 = microtime(TRUE) - $time;
+var_dump($t0 < $t0_max);
+
+
+$texts = '';
+foreach ($datas AS $data)
+{
+ $texts .= implode("\t", $data) . "\r\n";
+}
+
+$t1 = microtime(TRUE) - $time;
+var_dump($t1 < $t1_max);
+
+?>
++++DONE+++
+--EXPECT--
+bool(true)
+bool(true)
++++DONE+++
diff --git a/Zend/tests/implode_small_strings.phpt b/Zend/tests/implode_small_strings.phpt
deleted file mode 100644
index 94652a6..0000000
--- a/Zend/tests/implode_small_strings.phpt
+++ /dev/null
@@ -1,50 +0,0 @@
---TEST--
-Implode many small strings should not slowdown allocations
---INI--
-memory_limit=256m
---FILE--
-<?php
-
-/* To note is that memory usage can vary depending on whether opcache is on. The actual
- measuring that matters is timing here. */
-
-$time = microtime(TRUE);
-
-/* This might vary on Linux/Windows, so the worst case and also count in slow machines. */
-$t0_max = 0.1;
-$t1_max = 0.5;
-
-$datas = [];
-for ($i = 0; $i < 220000; $i++)
-{
- $datas[] = [
- '000.000.000.000',
- '000.255.255.255',
- '保留地址',
- '保留地址',
- '保留地址',
- '保留地址',
- '保留地址',
- '保留地址',
- ];
-}
-
-$t0 = microtime(TRUE) - $time;
-var_dump($t0 < $t0_max);
-
-
-$texts = '';
-foreach ($datas AS $data)
-{
- $texts .= implode("\t", $data) . "\r\n";
-}
-
-$t1 = microtime(TRUE) - $time;
-var_dump($t1 < $t1_max);
-
-?>
-+++DONE+++
---EXPECT--
-bool(true)
-bool(true)
-+++DONE+++