Skip to content

Instantly share code, notes, and snippets.

@TheFrozenFire
Created November 26, 2013 03:30
Show Gist options
  • Save TheFrozenFire/7653048 to your computer and use it in GitHub Desktop.
Save TheFrozenFire/7653048 to your computer and use it in GitHub Desktop.
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
<?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