Skip to content
This repository was archived by the owner on Nov 26, 2022. It is now read-only.

Commit 57ab8ca

Browse files
committed
update benchmark test suite
1 parent c40cec8 commit 57ab8ca

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

benchmark/build.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14-
require __DIR__.'/../src/Parser/QueryBuilder.php';
15-
require __DIR__.'/../src/functions.php';
14+
require __DIR__.'/../src/Parser/QueryString.php';
1615

1716
$pairs = [['module', 'home'], ['action', 'show'], ['page', 3]];
1817
for ($i = 0; $i < 100000; ++$i) {
19-
League\Uri\query_build($pairs);
18+
League\Uri\Parser\QueryString::build($pairs);
2019
}

benchmark/extract.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14-
require __DIR__.'/../src/Parser/QueryParser.php';
15-
require __DIR__.'/../src/functions.php';
14+
require __DIR__.'/../src/Parser/QueryString.php';
1615

1716
$query = 'module=home&action=show&page=3';
1817
for ($i = 0; $i < 100000; ++$i) {
19-
League\Uri\query_extract($query);
18+
League\Uri\Parser\QueryString::extract($query);
2019
}

benchmark/parse.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
* For the full copyright and license information, please view the LICENSE
1212
* file that was distributed with this source code.
1313
*/
14-
require __DIR__.'/../src/Parser/QueryParser.php';
15-
require __DIR__.'/../src/functions.php';
14+
require __DIR__.'/../src/Parser/QueryString.php';
1615

1716
$query = 'module=home&action=show&page=3';
1817
for ($i = 0; $i < 100000; ++$i) {
19-
League\Uri\query_parse($query);
18+
League\Uri\Parser\QueryString::parse($query);
2019
}

0 commit comments

Comments
 (0)