Created
November 26, 2013 03:30
-
-
Save TheFrozenFire/7653048 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | |
0000: 3,170,640 B | |
1 | |
0001: 3,399,976 B | |
2 | |
0002: 3,629,320 B | |
3 | |
0003: 3,858,696 B | |
4 | |
0004: 4,087,984 B | |
5 | |
0005: 4,317,312 B | |
6 | |
0006: 4,612,200 B | |
7 | |
0007: 4,841,600 B | |
8 | |
0008: 5,070,968 B | |
9 | |
0009: 5,300,352 B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
chdir(__DIR__); | |
// Setup autoloading | |
require 'init_autoloader.php'; | |
for($i = 0; $i < 10; $i++) { | |
echo $i.PHP_EOL; | |
// Run the application! | |
Zend\Mvc\Application::init(require 'config/application.config.php'); | |
gc_collect_cycles(); | |
echo sprintf('%1$04d: ', $i) . number_format(memory_get_usage()) . " B".PHP_EOL; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment