diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-17 18:43:07 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-17 18:43:07 +0300 |
| commit | d827d5345f778bb9a481e916666c540801108d18 (patch) | |
| tree | e65a311623a1bb6f54ba3808d0f3e6bd4257a327 /tests | |
| parent | c870b0f4bb688d58575c700f523972bd5cf1be55 (diff) | |
| download | gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.tar.gz gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.tar.bz2 gyraf1gov-d827d5345f778bb9a481e916666c540801108d18.zip | |
framework documenting and cleaning
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/code/echo.php | 2 | ||||
| -rwxr-xr-x | tests/compare/compress.php | 2 | ||||
| -rwxr-xr-x | tests/compare/md5-v-sha1.php | 4 | ||||
| -rwxr-xr-x | tests/compare/memcached-v-filecache.php | 7 | ||||
| -rwxr-xr-x | tests/compare/redis-v-filecache.php | 2 | ||||
| -rwxr-xr-x | tests/compare/serialize-v-jsonencode.php | 6 | ||||
| -rwxr-xr-x | tests/compare/sha1-v-sha256.php | 3 |
7 files changed, 13 insertions, 13 deletions
diff --git a/tests/code/echo.php b/tests/code/echo.php index b8b0c34..8d37a45 100755 --- a/tests/code/echo.php +++ b/tests/code/echo.php @@ -40,4 +40,4 @@ Etiam eu iaculis augue. Phasellus dapibus nec orci sed fermentum. Fusce nisi tor Duis sed tincidunt augue, et posuere tortor. Ut facilisis eros id lacus luctus finibus. Duis a libero tristique, viverra enim id, fermentum sem. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Maecenas a posuere magna. Fusce maximus nibh sit amet dignissim suscipit. Maecenas lacinia purus vel sapien tempor, at suscipit ipsum finibus. Vestibulum varius, metus eu scelerisque cursus, massa magna scelerisque nunc, nec venenatis lacus augue vitae ante. Phasellus massa lacus, lacinia condimentum dui in, porttitor aliquam sapien. In placerat auctor gravida. Phasellus sit amet justo in ipsum tristique laoreet quis ac mi. Pellentesque tincidunt dignissim ligula, et finibus nisl interdum quis. Mauris rhoncus arcu dignissim, interdum odio vestibulum, rutrum mi. Donec consectetur volutpat justo eget feugiat. Phasellus enim enim, hendrerit nec tempus ac, ornare vitae quam. "; Benchmark::add_spot('end'); // request ended -Benchmark::render_report();
\ No newline at end of file +echo( Benchmark::report());
\ No newline at end of file diff --git a/tests/compare/compress.php b/tests/compare/compress.php index 74fdea1..f36baa2 100755 --- a/tests/compare/compress.php +++ b/tests/compare/compress.php @@ -74,7 +74,7 @@ foreach($products as $product) { Benchmark::add_spot('end'); -Benchmark::render_report('code'); +echo(Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; die(); diff --git a/tests/compare/md5-v-sha1.php b/tests/compare/md5-v-sha1.php index 44b5148..74d0371 100755 --- a/tests/compare/md5-v-sha1.php +++ b/tests/compare/md5-v-sha1.php @@ -11,8 +11,8 @@ Benchmark::add_spot('100.000 x sha'); for($i = 0 ; $i<100000 ; $i++) $x = sha1($i); Benchmark::add_spot('end'); -Benchmark::render_report('code'); - +echo(Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; + die();
\ No newline at end of file diff --git a/tests/compare/memcached-v-filecache.php b/tests/compare/memcached-v-filecache.php index 539b0c5..4ffdfed 100755 --- a/tests/compare/memcached-v-filecache.php +++ b/tests/compare/memcached-v-filecache.php @@ -27,9 +27,8 @@ foreach($products as $product) { } Benchmark::add_spot('end'); -Benchmark::render_report('code'); - +echo(Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; -die(); - + +die(); diff --git a/tests/compare/redis-v-filecache.php b/tests/compare/redis-v-filecache.php index e59c390..3cb6536 100755 --- a/tests/compare/redis-v-filecache.php +++ b/tests/compare/redis-v-filecache.php @@ -27,7 +27,7 @@ foreach($products as $product) { } Benchmark::add_spot('end'); -Benchmark::render_report('code'); +echo(Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; die(); diff --git a/tests/compare/serialize-v-jsonencode.php b/tests/compare/serialize-v-jsonencode.php index ba9ccc9..c66c21b 100755 --- a/tests/compare/serialize-v-jsonencode.php +++ b/tests/compare/serialize-v-jsonencode.php @@ -29,7 +29,7 @@ foreach($products as $product) { } Benchmark::add_spot('end'); -Benchmark::render_report('code'); - +echo(Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; -die();
\ No newline at end of file + +die(); diff --git a/tests/compare/sha1-v-sha256.php b/tests/compare/sha1-v-sha256.php index 4d10e7f..d4bf5dc 100755 --- a/tests/compare/sha1-v-sha256.php +++ b/tests/compare/sha1-v-sha256.php @@ -15,7 +15,8 @@ Benchmark::add_spot('100.000 x sha256'); for($i = 0 ; $i<100000 ; $i++) $x = hash('sha256', $i); Benchmark::add_spot('end'); -Benchmark::render_report('code'); + +echo (Benchmark::report(BENCH_REPORT_COMMENT)); echo "test completed!"; die(); |
